[Pkg-wmaker-commits] [wmifs] 56/118: debian/patches: (hardening.patch) Harden binary by using default build flags.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 27 02:37:51 UTC 2015


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

dtorrance-guest pushed a commit to branch master
in repository wmifs.

commit 76e5c211f5b20ef607126f6ed4ac6e603fb0f984
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Wed Oct 29 20:11:09 2014 -0500

    debian/patches: (hardening.patch) Harden binary by using default build flags.
---
 debian/patches/hardening.patch | 19 +++++++++++++++++++
 debian/patches/series          |  1 +
 2 files changed, 20 insertions(+)

diff --git a/debian/patches/hardening.patch b/debian/patches/hardening.patch
new file mode 100644
index 0000000..4012bea
--- /dev/null
+++ b/debian/patches/hardening.patch
@@ -0,0 +1,19 @@
+Description: Harden binary by using default build flags.
+Author: Doug Torrance
+Last-Update: 2014-10-29
+
+--- a/wmifs/Makefile
++++ b/wmifs/Makefile
+@@ -23,10 +23,10 @@
+ INSTALL_FILE    = $(INSTALL) -p -o root -g root -m 644
+ 
+ .c.o:
+-	$(CC) -c $(CFLAGS) $< -o $*.o
++	$(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $*.o
+ 
+ wmifs: $(OBJS)
+-	$(CC) -o wmifs $^ -lXext $(LIBDIR) $(LIBS)
++	$(CC) $(LDFLAGS) -o wmifs $^ -lXext $(LIBDIR) $(LIBS)
+ 
+ all:: wmifs
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 3bc6baf..49d111b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 fix-manpage.patch
 fix-compiler-warning.patch
+hardening.patch

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



More information about the Pkg-wmaker-commits mailing list