[xgalaga] 13/16: debian/rules: Add hardening build flags to $CFLAGS.

Markus Koschany apo-guest at moszumanska.debian.org
Sat Dec 12 20:46:52 UTC 2015


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

apo-guest pushed a commit to branch master
in repository xgalaga.

commit 0e820868674f1f14a9d4f20ea504b35fe51ba5c7
Author: Markus Koschany <apo at debian.org>
Date:   Sat Dec 12 21:25:03 2015 +0100

    debian/rules: Add hardening build flags to $CFLAGS.
---
 debian/changelog | 1 +
 debian/rules     | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index d805548..a02df72 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,7 @@ xgalaga (2.1.1.0-5) unstable; urgency=medium
     void functions should not have a returned value.
     Thanks to Arthur Marble for the report and patch. (Closes: #739926)
   * Use copyright format 1.0.
+  * debian/rules: Add hardening build flags to $CFLAGS.
 
  -- Markus Koschany <apo at debian.org>  Sat, 12 Dec 2015 20:56:17 +0100
 
diff --git a/debian/rules b/debian/rules
index 19cc27e..db3c85f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,9 @@
 #!/usr/bin/make -f
 
-export CFLAGS=-Wall -g -DXF86VIDMODE
+CFLAGS = -Wall -g -DXF86VIDMODE
+CFLAGS += $(shell dpkg-buildflags --get CFLAGS)
+CFLAGS += $(shell dpkg-buildflags --get CPPFLAGS)
+CFLAGS += $(shell dpkg-buildflags --get LDFLAGS)
 
 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
 	CFLAGS += -O0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/xgalaga.git



More information about the Pkg-games-commits mailing list