[med-svn] [roguenarok] 01/01: hardening

Andreas Tille tille at debian.org
Tue Mar 14 11:52:40 UTC 2017


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

tille pushed a commit to branch master
in repository roguenarok.

commit fb0f3d737ca2f255ea66f994153cd244c431d0c2
Author: Andreas Tille <tille at debian.org>
Date:   Tue Mar 14 12:52:30 2017 +0100

    hardening
---
 debian/patches/hardening.patch | 43 ++++++++++++++++++++++++++++++++++++++++++
 debian/patches/series          |  1 +
 2 files changed, 44 insertions(+)

diff --git a/debian/patches/hardening.patch b/debian/patches/hardening.patch
new file mode 100644
index 0000000..cd74bc6
--- /dev/null
+++ b/debian/patches/hardening.patch
@@ -0,0 +1,43 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Mon, 13 Mar 2017 11:13:16 +0100
+Description: Propagate hardening options
+
+--- a/Makefile
++++ b/Makefile
+@@ -1,7 +1,7 @@
+ CC = gcc 
+ 
+-CFLAGS = -Wall -D_GNU_SOURCE # -DNDEBUG
+-LFLAGS = -lm
++CFLAGS += -Wall -D_GNU_SOURCE # -DNDEBUG
++LFLAGS += -lm
+ 
+ ifeq ($(mode), debug)
+  CFLAGS += -g
+@@ -33,20 +33,20 @@ mast-objs = rnr-mast.o common.o List.o T
+ prune-objs = rnr-prune.o common.o Tree.o BitVector.o HashTable.o  legacy.o newFunctions.o List.o
+ 
+ rnr-lsi: $(lsi-objs)
+-	$(CC) $(LFLAGS) -o $@   $^ $(CFLAGS)
++	$(CC) $(LFLAGS) -o $@   $^ $(CFLAGS) $(LDFLAGS)
+ rnr-tii: $(tii-objs)
+-	$(CC) $(LFLAGS) -o $@   $^ $(CFLAGS)
++	$(CC) $(LFLAGS) -o $@   $^ $(CFLAGS) $(LDFLAGS)
+ rnr-mast: $(mast-objs)
+-	$(CC) $(LFLAGS) -o $@   $^ $(CFLAGS)
++	$(CC) $(LFLAGS) -o $@   $^ $(CFLAGS) $(LDFLAGS)
+ rnr-prune: $(prune-objs)
+-	$(CC) $(LFLAGS) -o $@   $^ $(CFLAGS)
++	$(CC) $(LFLAGS) -o $@   $^ $(CFLAGS) $(LDFLAGS)
+ 
+ ifeq ($(mode),parallel)
+ RogueNaRok: $(rnr-objs)
+-	$(CC) $(LFLAGS) -o $@-parallel   $^ $(CFLAGS)
++	$(CC) $(LFLAGS) -o $@-parallel   $^ $(CFLAGS) $(LDFLAGS)
+ else
+ RogueNaRok: $(rnr-objs)
+-	$(CC) $(LFLAGS) -o $@   $^ $(CFLAGS)
++	$(CC) $(LFLAGS) -o $@   $^ $(CFLAGS) $(LDFLAGS)
+ endif
+ 
+ %.o : %.c $(DEPS)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..814900f
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+hardening.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/roguenarok.git



More information about the debian-med-commit mailing list