From: Thomas Petazzoni Date: Sun, 26 Apr 2015 20:42:01 +0000 (+0200) Subject: freerdp: fix patch naming X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8fe3ea553d2c8a463aafc763ad60a84262cda651;p=buildroot.git freerdp: fix patch naming Signed-off-by: Thomas Petazzoni --- diff --git a/package/freerdp/0002-fix-building-shared-libs.patch b/package/freerdp/0002-fix-building-shared-libs.patch new file mode 100644 index 0000000000..420f3d3544 --- /dev/null +++ b/package/freerdp/0002-fix-building-shared-libs.patch @@ -0,0 +1,23 @@ +winpr/tools: fix building shared libs + +libwinpr-makecert-tool.a is used to build libxfreerdp-server.so, so even +if we are building a static libwinpr-makecert-tool.a library, we need to +build it with -fPIC. + +Patch and commit log suggested by Samuel MARTIN. + +Signed-off-by: "Yann E. MORIN" +Cc: Samuel Martin + +diff -durN freerdp-440916eae2e07463912d5fe507677e67096eb083.orig/winpr/tools/makecert/CMakeLists.txt freerdp-440916eae2e07463912d5fe507677e67096eb083/winpr/tools/makecert/CMakeLists.txt +--- freerdp-440916eae2e07463912d5fe507677e67096eb083.orig/winpr/tools/makecert/CMakeLists.txt 2014-08-25 06:52:43.000000000 -0700 ++++ freerdp-440916eae2e07463912d5fe507677e67096eb083/winpr/tools/makecert/CMakeLists.txt 2014-10-24 15:39:39.600319523 -0700 +@@ -43,3 +43,8 @@ + + set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "WinPR/Tools") + ++if(BUILD_SHARED_LIBS) ++ # build libwinpr-makecert-tool.a with PIC because it is used to build ++ # the shared library libxfreerdp-server.so. ++ set_property(TARGET ${MODULE_NAME} PROPERTY POSITION_INDEPENDENT_CODE TRUE) ++endif() diff --git a/package/freerdp/freerdp-0002-fix-building-shared-libs.patch b/package/freerdp/freerdp-0002-fix-building-shared-libs.patch deleted file mode 100644 index 420f3d3544..0000000000 --- a/package/freerdp/freerdp-0002-fix-building-shared-libs.patch +++ /dev/null @@ -1,23 +0,0 @@ -winpr/tools: fix building shared libs - -libwinpr-makecert-tool.a is used to build libxfreerdp-server.so, so even -if we are building a static libwinpr-makecert-tool.a library, we need to -build it with -fPIC. - -Patch and commit log suggested by Samuel MARTIN. - -Signed-off-by: "Yann E. MORIN" -Cc: Samuel Martin - -diff -durN freerdp-440916eae2e07463912d5fe507677e67096eb083.orig/winpr/tools/makecert/CMakeLists.txt freerdp-440916eae2e07463912d5fe507677e67096eb083/winpr/tools/makecert/CMakeLists.txt ---- freerdp-440916eae2e07463912d5fe507677e67096eb083.orig/winpr/tools/makecert/CMakeLists.txt 2014-08-25 06:52:43.000000000 -0700 -+++ freerdp-440916eae2e07463912d5fe507677e67096eb083/winpr/tools/makecert/CMakeLists.txt 2014-10-24 15:39:39.600319523 -0700 -@@ -43,3 +43,8 @@ - - set_property(TARGET ${MODULE_NAME} PROPERTY FOLDER "WinPR/Tools") - -+if(BUILD_SHARED_LIBS) -+ # build libwinpr-makecert-tool.a with PIC because it is used to build -+ # the shared library libxfreerdp-server.so. -+ set_property(TARGET ${MODULE_NAME} PROPERTY POSITION_INDEPENDENT_CODE TRUE) -+endif()