diff options
Diffstat (limited to 'meta-oe/recipes-graphics/tigervnc/files/0003-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch')
-rw-r--r-- | meta-oe/recipes-graphics/tigervnc/files/0003-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/tigervnc/files/0003-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch b/meta-oe/recipes-graphics/tigervnc/files/0003-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch new file mode 100644 index 0000000000..c292df4a52 --- /dev/null +++ b/meta-oe/recipes-graphics/tigervnc/files/0003-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch | |||
@@ -0,0 +1,52 @@ | |||
1 | From 36bf37cb638cd87d7f8eb96afaf69c2d95177614 Mon Sep 17 00:00:00 2001 | ||
2 | From: Chen Qi <Qi.Chen@windriver.com> | ||
3 | Date: Mon, 19 Apr 2021 23:14:28 -0700 | ||
4 | Subject: [PATCH] tigervnc: add fPIC option to COMPILE_FLAGS | ||
5 | |||
6 | The static libraries in network/rdr/rfb were linked by shared | ||
7 | library libvnc.so, so we should add fPIC option to COMPILE_FLAGS to fix | ||
8 | relocation issue. | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
13 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | ||
14 | --- | ||
15 | common/network/CMakeLists.txt | 1 + | ||
16 | common/rdr/CMakeLists.txt | 1 + | ||
17 | common/rfb/CMakeLists.txt | 1 + | ||
18 | 3 files changed, 3 insertions(+) | ||
19 | |||
20 | diff --git a/common/network/CMakeLists.txt b/common/network/CMakeLists.txt | ||
21 | index f08eaa31..85c05951 100644 | ||
22 | --- a/common/network/CMakeLists.txt | ||
23 | +++ b/common/network/CMakeLists.txt | ||
24 | @@ -15,4 +15,5 @@ endif() | ||
25 | |||
26 | if(UNIX) | ||
27 | libtool_create_control_file(network) | ||
28 | + set_target_properties(network PROPERTIES COMPILE_FLAGS -fPIC) | ||
29 | endif() | ||
30 | diff --git a/common/rdr/CMakeLists.txt b/common/rdr/CMakeLists.txt | ||
31 | index 30c2403a..94e1ff98 100644 | ||
32 | --- a/common/rdr/CMakeLists.txt | ||
33 | +++ b/common/rdr/CMakeLists.txt | ||
34 | @@ -35,4 +35,5 @@ endif() | ||
35 | |||
36 | if(UNIX) | ||
37 | libtool_create_control_file(rdr) | ||
38 | + set_target_properties(rdr PROPERTIES COMPILE_FLAGS -fPIC) | ||
39 | endif() | ||
40 | diff --git a/common/rfb/CMakeLists.txt b/common/rfb/CMakeLists.txt | ||
41 | index 360434a9..28566e90 100644 | ||
42 | --- a/common/rfb/CMakeLists.txt | ||
43 | +++ b/common/rfb/CMakeLists.txt | ||
44 | @@ -116,4 +116,5 @@ endif() | ||
45 | |||
46 | if(UNIX) | ||
47 | libtool_create_control_file(rfb) | ||
48 | + set_target_properties(rfb PROPERTIES COMPILE_FLAGS -fPIC) | ||
49 | endif() | ||
50 | -- | ||
51 | 2.25.1 | ||
52 | |||