python: make hashlib and readline modules really optional
[buildroot-gz.git] / package / freerdp / 0001-fix-building-shared-libs.patch
blob8922cb15b6340dccb13fbc06fb27d9a7f4bffd0c
1 winpr/tools: fix building shared libs
3 libwinpr-makecert-tool.a is used to build libxfreerdp-server.so, so even
4 if we are building a static libwinpr-makecert-tool.a library, we need to
5 build it with -fPIC.
7 Patch and commit log suggested by Samuel MARTIN.
9 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
10 Cc: Samuel Martin <s.martin49@gmail.com>
12 diff -durN freerdp-440916eae2e07463912d5fe507677e67096eb083.orig/winpr/tools/makecert/CMakeLists.txt freerdp-440916eae2e07463912d5fe507677e67096eb083/winpr/tools/makecert/CMakeLists.txt
13 --- freerdp-440916eae2e07463912d5fe507677e67096eb083.orig/winpr/tools/makecert/CMakeLists.txt 2014-08-25 06:52:43.000000000 -0700
14 +++ freerdp-440916eae2e07463912d5fe507677e67096eb083/winpr/tools/makecert/CMakeLists.txt 2014-10-24 15:39:39.600319523 -0700
15 @@ -37,4 +37,11 @@
16 add_subdirectory(cli)
18 set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "WinPR/Tools")
20 +if(BUILD_SHARED_LIBS)
21 + # build libwinpr-makecert-tool.a with PIC because it is used to build
22 + # the shared library libxfreerdp-server.so.
23 + set_property(TARGET ${MODULE_NAME} PROPERTY POSITION_INDEPENDENT_CODE TRUE)
24 +endif()
26 export_complex_library(LIBNAME ${MODULE_NAME})