[med-svn] [king-probe] 01/02: Add CFLAGS and LDFLAGS to gcc compiler

Malihe Asemani mali-guest at moszumanska.debian.org
Tue Sep 1 19:01:30 UTC 2015


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

mali-guest pushed a commit to branch master
in repository king-probe.

commit 2ee7e4d4af01a6f718f4007cd0f457eaf0cf28ab
Author: Malihe Asemani <ml.asemani at gmail.com>
Date:   Tue Sep 1 17:37:41 2015 +0000

    Add CFLAGS and LDFLAGS to gcc compiler
---
 debian/patches/compiler_flags.patch | 24 ++++++++++++++++++++++++
 debian/patches/series               |  1 +
 2 files changed, 25 insertions(+)

diff --git a/debian/patches/compiler_flags.patch b/debian/patches/compiler_flags.patch
new file mode 100644
index 0000000..d9669b4
--- /dev/null
+++ b/debian/patches/compiler_flags.patch
@@ -0,0 +1,24 @@
+Description: Adding default CFLAGS and LDFLAGS to gcc
+  This patch ensures propagation of CFLAGS and LDFLAGS
+  to gcc compiler. So, it avoids Lintian warns about
+  'hardening-no-relro'.
+Author: Malihe Asemani <ml.asemani at gmail.com>
+Origin: upstream, http://kinemage.biochem.duke.edu/software/probe.php
+--- king-probe.orig/Makefile.linux
++++ king-probe/Makefile.linux
+@@ -1,5 +1,5 @@
+ MACHINEFLAGS = 
+-CFLAGS = $(MACHINEFLAGS)
++CFLAGS += $(MACHINEFLAGS)
+ LFLAGS = -lm $(MACHINEFLAGS)
+ OBJLIST = dots.o abin.o readPDBrecs.o geom3d.o utility.o select.o \
+ 	 parse.o atomprops.o stdconntable.o autobondrot.o hybrid_36_c.o
+@@ -8,7 +8,7 @@
+ 	cc -c $*.c $(CFLAGS)
+ 
+ probe: probe.o $(OBJLIST)
+-	cc -o $@ probe.o $(OBJLIST) $(LFLAGS)
++	cc -o $@ probe.o $(OBJLIST) $(LFLAGS) $(LDFLAGS)
+ 
+ clean:
+ 	@rm -f *.o *.ckp
diff --git a/debian/patches/series b/debian/patches/series
index cc1eda2..ee6c0a0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 fix_build_issue.patch
+compiler_flags.patch

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



More information about the debian-med-commit mailing list