[Pkg-wmaker-commits] [wmppp.app] 34/120: debian/patches/hardening_flags.patch: Use hardening build flags.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 27 12:04:33 UTC 2015


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

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

commit a73722ca5c2d2527564b4a51a5b4b1a3077ce322
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sat Sep 13 23:56:57 2014 -0500

    debian/patches/hardening_flags.patch: Use hardening build flags.
---
 debian/patches/hardening_flags.patch | 28 ++++++++++++++++++++++++++++
 debian/patches/series                |  1 +
 2 files changed, 29 insertions(+)

diff --git a/debian/patches/hardening_flags.patch b/debian/patches/hardening_flags.patch
new file mode 100644
index 0000000..50ede92
--- /dev/null
+++ b/debian/patches/hardening_flags.patch
@@ -0,0 +1,28 @@
+Description: Hardening flags.
+ Compile with CPPFLAGS and LDFLAGS and append, rather than overwrite, CFLAGS
+ to enable hardening.
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2014-09-13
+
+--- a/wmppp/Makefile
++++ b/wmppp/Makefile
+@@ -1,16 +1,16 @@
+ LIBDIR = -L/usr/X11R6/lib
+ LIBS   = -lXpm -lXext -lX11
+-CFLAGS = -O2
++CFLAGS += -O2
+ OBJS  = wmppp.o \
+ 		../wmgeneral/wmgeneral.o \
+ 		../wmgeneral/misc.o \
+ 		../wmgeneral/list.o
+ 
+ .c.o:
+-	cc -g -c $(CFLAGS) -Wall $< -o $*.o
++	cc -g -c $(CPPFLAGS) $(CFLAGS) -Wall $< -o $*.o
+ 
+ wmppp: $(OBJS)
+-	cc -o wmppp $^ -lXext $(LIBDIR) $(LIBS)
++	cc -o wmppp $(LDFLAGS) $^ -lXext $(LIBDIR) $(LIBS)
+ 
+ all:: wmppp getmodemspeed
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 08269b5..8f385db 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,4 @@ allow_isdn_devices.patch
 stampfile_handling.patch
 display_speed_in_k.patch
 use_rm_-f_for_make_clean.patch
+hardening_flags.patch

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



More information about the Pkg-wmaker-commits mailing list