[Pkg-nagios-changes] [pkg-pnp4nagios] 01/02: Fix use of hardening flags with a patch
Markus Frosch
lazyfrosch at moszumanska.debian.org
Wed Jul 1 18:12:45 UTC 2015
This is an automated email from the git hooks/post-receive script.
lazyfrosch pushed a commit to branch master
in repository pkg-pnp4nagios.
commit c672afa254bedfff51f35c38bd98f08bba326cee
Author: Markus Frosch <markus at lazyfrosch.de>
Date: Wed Jul 1 20:06:31 2015 +0200
Fix use of hardening flags with a patch
---
debian/patches/hardening | 26 ++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 27 insertions(+)
diff --git a/debian/patches/hardening b/debian/patches/hardening
new file mode 100644
index 0000000..64ff528
--- /dev/null
+++ b/debian/patches/hardening
@@ -0,0 +1,26 @@
+Description: Fix use of flags in Makefiles
+ To pass all hardening flags to gcc.
+Author: Markus Frosch <lazyfrosch at debian.org>
+Last-Update: 2015-07-01
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -83,7 +83,7 @@
+ #
+ ###############################
+ npcd: npcd.c $(NPCDOBJS) $(NPCDHEAD)
+- $(CC) $(CFLAGS) -o $@ npcd.c $(NPCDOBJS) -lpthread
++ $(CC) $(CFLAGS) $(CPPFLAGS) -o $@ npcd.c $(NPCDOBJS) $(LDFLAGS) -lpthread
+
+ ###############################
+ #
+@@ -91,7 +91,7 @@
+ #
+ ###############################
+ npcdmod.o: npcdmod.c
+- $(CC) $(MOD_CFLAGS) $(CFLAGS) -o npcdmod.o npcdmod.c $(MOD_LDFLAGS) $(LDFLAGS) $(LIBS) -fPIC
++ $(CC) $(MOD_CFLAGS) $(CFLAGS) $(CPPFLAGS) -o npcdmod.o npcdmod.c $(MOD_LDFLAGS) $(LDFLAGS) $(LIBS) -fPIC
+
+ ###############################
+ #
diff --git a/debian/patches/series b/debian/patches/series
index 465b451..1a82f5c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@ adjust-template-path
privacy-warning
config_instances
install_opts
+hardening
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-pnp4nagios.git
More information about the Pkg-nagios-changes
mailing list