[Pkg-wmaker-commits] [wmppp.app] 55/120: wmppp.app: Use build flags.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 27 12:04:35 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 96ab31117d188dad538c2382e14830945a180994
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date:   Sun Sep 14 12:57:21 2014 -0500

    wmppp.app: Use build flags.
    
    Compile with CPPFLAGS and LDFLAGS and append, rather than overwrite, CFLAGS.
    
    This enables the Debian package to be built with hardening options.  See
    https://wiki.debian.org/Hardening.
---
 wmppp/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/wmppp/Makefile b/wmppp/Makefile
index 763e52a..bd64608 100644
--- 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
 

-- 
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