[Forensics-changes] [memdump] 06/12: Add patch 03-build-flags-support.patch to support hardening build flags.
Raphaël Hertzog
hertzog at moszumanska.debian.org
Tue Jul 28 12:51:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
hertzog pushed a commit to branch debian
in repository memdump.
commit 101c608df49933d9ddfd086230010ded3ebacb67
Author: Raphaël Hertzog <hertzog at debian.org>
Date: Tue Jul 28 09:44:56 2015 +0200
Add patch 03-build-flags-support.patch to support hardening build flags.
---
debian/changelog | 2 ++
debian/patches/03-build-flags-support.patch | 32 +++++++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 35 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index df54279..bd827bc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,8 @@ memdump (1.01-7) UNRELEASED; urgency=medium
* Switch to debhelper compat 9 with short rules file.
* Drop uselesse lintian overrides
* Update copyright file to follow version 1.0 of the copyright format.
+ * Add patch 03-build-flags-support.patch to support hardening build
+ flags.
-- Raphaël Hertzog <hertzog at debian.org> Tue, 28 Jul 2015 09:20:35 +0200
diff --git a/debian/patches/03-build-flags-support.patch b/debian/patches/03-build-flags-support.patch
new file mode 100644
index 0000000..9d294de
--- /dev/null
+++ b/debian/patches/03-build-flags-support.patch
@@ -0,0 +1,32 @@
+Description: Support build flags injection
+ Proper support of LDFLAGS / CFLAGS / CPPFLAGS is required so
+ so that dpkg-buildflags can inject supplementary build options.
+Author: Raphaël Hertzog <hertzog at debian.org>
+Origin: vendor
+Last-Update: 2015-07-28
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/Makefile
++++ b/Makefile
+@@ -1,9 +1,10 @@
+ SHELL = /bin/sh
+-CC = gcc -Wformat -Wunused
++CC = gcc
+ OPT = -O
+ DEBUG = -g
+ PROGS = memdump
+-CFLAGS = $(OPT) $(DEBUG) -I. $(XFLAGS) $(DEFS)
++CPPFLAGS += -I. $(DEFS)
++CFLAGS += -Wall
+ OBJS = memdump.o convert_size.o error.o mymalloc.o
+ PROGS = memdump
+ MAN = memdump.1
+@@ -16,7 +17,7 @@ all: $(PROGS)
+ manpages: $(MAN)
+
+ memdump: $(OBJS)
+- $(CC) $(CFLAGS) -o $@ $(OBJS) $(SYSLIBS)
++ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(SYSLIBS)
+
+ memdump.1: memdump.c
+ srctoman $? >$@
diff --git a/debian/patches/series b/debian/patches/series
index 7cc0e9a..1096ffc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
01-hurd.patch
02-linux3.patch
+03-build-flags-support.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/memdump.git
More information about the forensics-changes
mailing list