[pkg-kolab] add-linker-flags.patch in libkolab.

Diane Trout diane at ghic.org
Mon Jun 30 05:19:21 UTC 2014


Hello,

Does anyone know the reason for why this patch is in libkolab?

Description: Add relro linker flag to SWIG
 * Lintian throws a hardening-no-relro warning, somehow
   the standard dpkg linker flags are not passed to
   the cmake build.
 * Also add as-needed flag because of dpkg-shlibdeps warnings.
Author: Paul Klos <kolab at klos2day.nl>
Last-Update: 2013-04-11

--- a/cmake/modules/SWIGUtils.cmake
+++ b/cmake/modules/SWIGUtils.cmake
@@ -16,7 +16,7 @@
 
     #Compile PHP Bindings
     # Since there is no php library we can't compile with -Wl,--no-undefined
-    set(CMAKE_SHARED_LINKER_FLAGS "")
+    set(CMAKE_SHARED_LINKER_FLAGS "-Wl,-z,relro,--as-needed")
 
     if (APPLE)
         set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -flat_namespace -undefined 
suppress" )




More information about the pkg-kolab-devel mailing list