[Pkg-wmaker-commits] [wmshutdown] 72/173: debian/patches/10-makefile.patch: Add LDFLAGS and CFLAGS to actually use hardened flags. Update thanks to Simon Ruderich <simon at ruderich.org>
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Tue Aug 25 02:46:28 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository wmshutdown.
commit 18ccde9c408a5c532aedd7542fe6267c50b4811f
Author: Jari Aalto <jari.aalto at cante.net>
Date: Sat Mar 3 10:54:50 2012 -0500
debian/patches/10-makefile.patch: Add LDFLAGS and CFLAGS to actually use hardened flags. Update thanks to Simon Ruderich <simon at ruderich.org>
---
debian/patches/10-makefile.patch | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/debian/patches/10-makefile.patch b/debian/patches/10-makefile.patch
index 0e0aa0d..1360dc3 100644
--- a/debian/patches/10-makefile.patch
+++ b/debian/patches/10-makefile.patch
@@ -3,6 +3,9 @@ From: Jari Aalto <jari.aalto at cante.net>
Date: Thu, 17 Dec 2009 14:20:10 +0200
Subject: [PATCH] Makefile: Change name. Fix linking with GTK+
+Also use CFLAGS, CPPFLAGS, LDFLAGS from the environment. Necessary to use
+(hardening) compiler flags specified by dh.
+
Signed-off-by: Jari Aalto <jari.aalto at cante.net>
---
Makefile | 32 ++++++++++++++++++++------------
@@ -15,7 +18,7 @@ index 219e871..678fda4 100644
@@ -1,4 +1,15 @@
-all:
+
-+LDFLAGS = -Wl,--no-add-needed -Wl,--no-undefined
++LDFLAGS += -Wl,--no-add-needed -Wl,--no-undefined
+INCFLAGS = -I/usr/include/gtk-2.0
+LIBS = -lX11
+
@@ -54,12 +57,12 @@ index 219e871..678fda4 100644
dock: wmShutdown.c
- $(CC) -c -o wmShutdown.o wmShutdown.c `gtk-config --cflags`
- $(CC) -o wmShutdown wmShutdown.o `gtk-config --libs`
-+ $(CC) $(INCFLAGS) $(GTKFLAGS) -c -o wmShutdown.o wmShutdown.c
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(INCFLAGS) $(GTKFLAGS) -c -o wmShutdown.o wmShutdown.c
+ $(CC) $(LDFLAGS) -o wmShutdown wmShutdown.o $(GTKLIBS) $(LIBS)
shutdown: shutdown.c
- $(CC) -o Shutdown shutdown.c
-+ $(CC) $(LDFLAGS) $(INCFLAGS) -o Shutdown shutdown.c
++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(INCFLAGS) -o Shutdown shutdown.c
--
1.6.5
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmshutdown.git
More information about the Pkg-wmaker-commits
mailing list