[med-svn] [bio-rainbow] 01/02: add_hardening

Olivier Sallou osallou at debian.org
Mon Aug 17 15:09:17 UTC 2015


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

osallou pushed a commit to branch patch-queue/master
in repository bio-rainbow.

commit f26299e86b9da3c6dfb6cbd98ff0590c4c78260d
Author: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
Date:   Mon Aug 17 12:03:40 2015 +0000

    add_hardening
    
    ===================================================================
    
    Gbp-Pq: Name add_hardening.patch
---
 Makefile | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 187191b..77fb275 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,11 @@
+CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
+CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
+CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
+LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+
+
 CC=gcc
-CFLAGS= -W -O2 -Wall -Wno-self-assign -Wno-unused-function
+CFLAGS+= -W -O2 -Wall -Wno-self-assign -Wno-unused-function
 DFLAGS= -D_FILE_OFFSET_BITS=64
 GLIBS=-lm
 GENERIC_SRC= string.h bitvec.h file_reader.h hashset.h sort.h list.h dna.h heap.h stdaln.h vector.h
@@ -13,13 +19,13 @@ GENERIC_SRC= string.h bitvec.h file_reader.h hashset.h sort.h list.h dna.h heap.
 all: rainbow ezmsim rbasm
 
 rainbow: main.o  divide.o file_reader.o asm_R2.o mergectg.o cluster.o
-	$(CC) $(CFLAGS) -o $@ $^ $(GLIBS) 
+	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(GLIBS)
 
 rbasm: asm_R2.o rbasm_main.o file_reader.o
-	$(CC) $(CFLAGS) -o $@ $^ $(GLIBS)
+	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(GLIBS)
 
 ezmsim: ezmsim.o
-	$(CC) $(CFLAGS) -o $@ $^ $(GLIBS)
+	$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $^ $(GLIBS)
 
 asm_R2.o: asm_R2.c asm_R2.h string.h vector.h hashset.h file_reader.h \
   dna.h

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



More information about the debian-med-commit mailing list