[milter-manager-commit] milter-manager/milter-manager at 7f9da14 [master] package debian: Use dpkg-buildflags for CFLAGS

Back to archive index

Youhei SASAKI null+****@clear*****
Thu Jun 15 18:07:42 JST 2017


Youhei SASAKI	2017-06-15 18:07:42 +0900 (Thu, 15 Jun 2017)

  New Revision: 7f9da1443af5cac32f1bef27b0ec94529fb18b96
  https://github.com/milter-manager/milter-manager/commit/7f9da1443af5cac32f1bef27b0ec94529fb18b96

  Message:
    package debian: Use dpkg-buildflags for CFLAGS
    
    Using "dpkg-buildflags" is the recommended way to incorporate the build
    flags in Debian. This feature makes packages more stable, secure.
    
    Signed-off-by: Youhei SASAKI <uwaba****@gfd-d*****>

  Modified files:
    package/debian/rules

  Modified: package/debian/rules (+3 -2)
===================================================================
--- package/debian/rules    2017-06-15 17:50:50 +0900 (fad0f84)
+++ package/debian/rules    2017-06-15 18:07:42 +0900 (d7e4018)
@@ -5,8 +5,9 @@
 #export DH_VERBOSE=1
 # This has to be exported to make some magic below work.
 export DH_OPTIONS
-# Keep debug symbols
-export CFLAGS += -g
+# Enable hardening build, @see https://wiki.debian.org/Hardening
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
 # search rbgobject.h
 export CFLAGS += -I$(ruby -rrbconfig -e 'print RbConfig::CONFIG["vendorarchdir"]')
 # Workaround ev.h path
-------------- next part --------------
An HTML attachment was scrubbed...
Download 



More information about the milter-manager-commit mailing list
Back to archive index