[med-svn] [express] 06/06: Correct use of flags and dynamic linking

Gert Wollny gert-guest at moszumanska.debian.org
Tue Jul 26 19:23:17 UTC 2016


This is an automated email from the git hooks/post-receive script.

gert-guest pushed a commit to branch master
in repository express.

commit d075df66230ab0e118348cb1ffabf7e74e7bafc3
Author: Gert Wollny <gw.fossdev at gmail.com>
Date:   Tue Jul 26 19:19:07 2016 +0000

    Correct use of flags and dynamic  linking
---
 debian/changelog                         |  5 ++--
 debian/patches/correct-debug-flags.patch | 41 +++++++++++++++++++++++++++-----
 debian/rules                             |  2 ++
 3 files changed, 40 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 23e5561..02ae218 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,8 +5,9 @@ berkeley-express (1.5.1-2) UNRELEASED; urgency=medium
   * cme fix dpkg-control: 
     - update standards version to 3.9.8
     - update to secure packaging urls
-  * d/p/correct-debug-flags: don't force debug flags and static 
-    linking of BOOST
+  * d/p/correct-debug-flags: don't force debug flags and 
+    dynamically link to BOOST, protobuf and tcmalloc_minimal
+  * d/rules: enable hardening 
 
  -- Gert Wollny <gw.fossdev at gmail.com>  Tue, 26 Jul 2016 18:38:52 +0000
 
diff --git a/debian/patches/correct-debug-flags.patch b/debian/patches/correct-debug-flags.patch
index e6b2cef..900d498 100644
--- a/debian/patches/correct-debug-flags.patch
+++ b/debian/patches/correct-debug-flags.patch
@@ -1,16 +1,25 @@
+Description: remove forced flags and set dynamic linking 
+ Remove the forced flags so that Debian flags will be used, and 
+ link dynamically to all libraries
+Author: Gert Wollny <gw.fossdev at gmail.com>
+Forwarded: no 
+
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -8,12 +8,12 @@
+@@ -6,14 +6,13 @@
+ set(${PROJECT_NAME}_VERSION_MINOR 5)
+ set(${PROJECT_NAME}_VERSION_PATCH 1)
  
- set(CMAKE_CXX_FLAGS "-Wall")
- 
--set(CMAKE_CXX_FLAGS_DEBUG "-g ${CMAKE_CXX_FLAGS}")
--set(CMAKE_CXX_FLAGS_RHDEBINFO "-O3 -g ${CMAKE_CXX_FLAGS}")
--set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os ${CMAKE_CXX_FLAGS}")
+-set(CMAKE_CXX_FLAGS "-Wall")
++#set(CMAKE_CXX_FLAGS "-Wall")
 +#set(CMAKE_CXX_FLAGS_DEBUG "-g ${CMAKE_CXX_FLAGS}")
 +#set(CMAKE_CXX_FLAGS_RHDEBINFO "-O3 -g ${CMAKE_CXX_FLAGS}")
 +#set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os ${CMAKE_CXX_FLAGS}")
  
+-set(CMAKE_CXX_FLAGS_DEBUG "-g ${CMAKE_CXX_FLAGS}")
+-set(CMAKE_CXX_FLAGS_RHDEBINFO "-O3 -g ${CMAKE_CXX_FLAGS}")
+-set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os ${CMAKE_CXX_FLAGS}")
+-
 -set(CMAKE_BUILD_TYPE Release)
 -set(Boost_USE_STATIC_LIBS ON)
 +#set(CMAKE_BUILD_TYPE Release)
@@ -18,3 +27,23 @@
  
  find_package(Boost 1.39
      COMPONENTS
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -10,7 +10,7 @@
+ set(LIBRARIES ${Boost_LIBRARIES})
+ 
+ if (GPERFTOOLS_TCMALLOC) 
+-   set(LIBRARIES ${LIBRARIES} "libtcmalloc_minimal.a")
++   set(LIBRARIES ${LIBRARIES} "libtcmalloc_minimal.so")
+ endif (GPERFTOOLS_TCMALLOC)
+ 
+ if(WIN32)
+@@ -20,7 +20,7 @@
+ endif(WIN32)
+ 
+ if (PROTOBUF_FOUND)
+-  set(LIBRARIES ${LIBRARIES} "libprotobuf.a")
++  set(LIBRARIES ${LIBRARIES} "libprotobuf.so")
+ endif(PROTOBUF_FOUND)
+ 
+ target_link_libraries(express ${LIBRARIES})
diff --git a/debian/rules b/debian/rules
index 5e03318..5d67d2c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
 DH_VERBOSE := 1
 
 %:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/express.git



More information about the debian-med-commit mailing list