Add patch use $(CPPFLAGS) and $(LDFLAGS) in Makefile.
authorgregor herrmann <gregoa@debian.org>
Wed, 6 Jun 2012 23:26:10 +0000 (01:26 +0200)
committergregor herrmann <gregoa@debian.org>
Wed, 6 Jun 2012 23:26:10 +0000 (01:26 +0200)
debian/patches/hardening.patch [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]

diff --git a/debian/patches/hardening.patch b/debian/patches/hardening.patch
new file mode 100644 (file)
index 0000000..87d615d
--- /dev/null
@@ -0,0 +1,17 @@
+Description: use CPPFLAGS and LDFLAGS to get more hardening
+Origin: vendor
+Forwarded: yes, private email
+Author: gregor herrmann <gregoa@debian.org>
+Last-Update: 2012-06-07
+
+--- a/Makefile
++++ b/Makefile
+@@ -6,7 +6,7 @@
+ all: cpulimit
+ cpulimit: cpulimit.c
+-      $(CC) -o cpulimit cpulimit.c -lrt $(CFLAGS)
++      $(CC) -o cpulimit cpulimit.c -lrt $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
+ install: cpulimit
+       mkdir -p ${PREFIX}/bin
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..814900f
--- /dev/null
@@ -0,0 +1 @@
+hardening.patch