summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics/tigervnc/files/0004-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-graphics/tigervnc/files/0004-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch')
-rw-r--r--meta-oe/recipes-graphics/tigervnc/files/0004-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch36
1 files changed, 13 insertions, 23 deletions
diff --git a/meta-oe/recipes-graphics/tigervnc/files/0004-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch b/meta-oe/recipes-graphics/tigervnc/files/0004-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch
index 97b0a388a2..5f14665b8d 100644
--- a/meta-oe/recipes-graphics/tigervnc/files/0004-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch
+++ b/meta-oe/recipes-graphics/tigervnc/files/0004-tigervnc-add-fPIC-option-to-COMPILE_FLAGS.patch
@@ -1,44 +1,34 @@
1From 9563b69640227da2220ee0c39077afb736cc96d1 Mon Sep 17 00:00:00 2001 1From 7f8acd59bb2e54f9be25a98dd71534700a9e355a Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Thu, 20 Jul 2017 17:12:17 +0800 3Date: Mon, 19 Apr 2021 23:14:28 -0700
4Subject: [PATCH 4/4] tigervnc: add fPIC option to COMPILE_FLAGS 4Subject: [PATCH] tigervnc: add fPIC option to COMPILE_FLAGS
5 5
6The static libraries in Xregion/network/rdr/rfb were linked by shared 6The static libraries in network/rdr/rfb were linked by shared
7library libvnc.so, so we should add fPIC option to COMPILE_FLAGS to fix 7library libvnc.so, so we should add fPIC option to COMPILE_FLAGS to fix
8relocation issue. 8relocation issue.
9 9
10Upstream-Status: Pending 10Upstream-Status: Pending
11 11
12Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 12Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
13Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
13--- 14---
14 common/Xregion/CMakeLists.txt | 1 +
15 common/network/CMakeLists.txt | 1 + 15 common/network/CMakeLists.txt | 1 +
16 common/rdr/CMakeLists.txt | 1 + 16 common/rdr/CMakeLists.txt | 1 +
17 common/rfb/CMakeLists.txt | 1 + 17 common/rfb/CMakeLists.txt | 1 +
18 4 files changed, 4 insertions(+) 18 3 files changed, 3 insertions(+)
19 19
20diff --git a/common/Xregion/CMakeLists.txt b/common/Xregion/CMakeLists.txt
21index 40ca97e..9411328 100644
22--- a/common/Xregion/CMakeLists.txt
23+++ b/common/Xregion/CMakeLists.txt
24@@ -3,4 +3,5 @@ add_library(Xregion STATIC
25
26 if(UNIX)
27 libtool_create_control_file(Xregion)
28+ set_target_properties(Xregion PROPERTIES COMPILE_FLAGS -fPIC)
29 endif()
30diff --git a/common/network/CMakeLists.txt b/common/network/CMakeLists.txt 20diff --git a/common/network/CMakeLists.txt b/common/network/CMakeLists.txt
31index b624c8e..6c06ec9 100644 21index d00ca452..e84e0290 100644
32--- a/common/network/CMakeLists.txt 22--- a/common/network/CMakeLists.txt
33+++ b/common/network/CMakeLists.txt 23+++ b/common/network/CMakeLists.txt
34@@ -9,4 +9,5 @@ endif() 24@@ -16,4 +16,5 @@ endif()
35 25
36 if(UNIX) 26 if(UNIX)
37 libtool_create_control_file(network) 27 libtool_create_control_file(network)
38+ set_target_properties(network PROPERTIES COMPILE_FLAGS -fPIC) 28+ set_target_properties(network PROPERTIES COMPILE_FLAGS -fPIC)
39 endif() 29 endif()
40diff --git a/common/rdr/CMakeLists.txt b/common/rdr/CMakeLists.txt 30diff --git a/common/rdr/CMakeLists.txt b/common/rdr/CMakeLists.txt
41index 989ba2f..20f6489 100644 31index 989ba2f4..20f6489d 100644
42--- a/common/rdr/CMakeLists.txt 32--- a/common/rdr/CMakeLists.txt
43+++ b/common/rdr/CMakeLists.txt 33+++ b/common/rdr/CMakeLists.txt
44@@ -27,4 +27,5 @@ target_link_libraries(rdr ${RDR_LIBRARIES}) 34@@ -27,4 +27,5 @@ target_link_libraries(rdr ${RDR_LIBRARIES})
@@ -48,15 +38,15 @@ index 989ba2f..20f6489 100644
48+ set_target_properties(rdr PROPERTIES COMPILE_FLAGS -fPIC) 38+ set_target_properties(rdr PROPERTIES COMPILE_FLAGS -fPIC)
49 endif() 39 endif()
50diff --git a/common/rfb/CMakeLists.txt b/common/rfb/CMakeLists.txt 40diff --git a/common/rfb/CMakeLists.txt b/common/rfb/CMakeLists.txt
51index 5047e5e..88838ab 100644 41index fc5a37bf..7f5ce131 100644
52--- a/common/rfb/CMakeLists.txt 42--- a/common/rfb/CMakeLists.txt
53+++ b/common/rfb/CMakeLists.txt 43+++ b/common/rfb/CMakeLists.txt
54@@ -98,4 +98,5 @@ target_link_libraries(rfb ${RFB_LIBRARIES}) 44@@ -99,4 +99,5 @@ target_link_libraries(rfb ${RFB_LIBRARIES})
55 45
56 if(UNIX) 46 if(UNIX)
57 libtool_create_control_file(rfb) 47 libtool_create_control_file(rfb)
58+ set_target_properties(rfb PROPERTIES COMPILE_FLAGS -fPIC) 48+ set_target_properties(rfb PROPERTIES COMPILE_FLAGS -fPIC)
59 endif() 49 endif()
60-- 50--
612.7.4 512.30.2
62 52