[med-svn] [dascrubber] 01/04: Enable build when linked with -Wl, --as-needed

Andreas Tille tille at debian.org
Mon Dec 12 15:54:01 UTC 2016


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

tille pushed a commit to branch master
in repository dascrubber.

commit 41476b62f0604ba22964ceb8b38f454496fbe8b3
Author: Andreas Tille <tille at debian.org>
Date:   Mon Dec 12 16:36:54 2016 +0100

    Enable build when linked with -Wl, --as-needed
---
 debian/changelog                    |  9 +++++++++
 debian/patches/compiler-flags.patch | 12 ++++++++----
 2 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index df45a52..01b45c1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+dascrubber (0~20160601-2) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Enable build when linked with -Wl, --as-needed (Thanks for the patch to
+    Graham Inggs <ginggs at debian.org>)
+    Closes: #847943
+
+ -- Andreas Tille <tille at debian.org>  Mon, 12 Dec 2016 16:35:52 +0100
+
 dascrubber (0~20160601-1) unstable; urgency=medium
 
   * Initial release (Closes: #841396)
diff --git a/debian/patches/compiler-flags.patch b/debian/patches/compiler-flags.patch
index 84f4fd0..a16adc7 100644
--- a/debian/patches/compiler-flags.patch
+++ b/debian/patches/compiler-flags.patch
@@ -2,14 +2,16 @@ Description: Allow additional compiler and linker flags
 Author: Afif Elghraoui <afif at debian.org>
 Forwarded: no
 Last-Update: 2016-10-20
---- dascrubber.orig/Makefile
-+++ dascrubber/Makefile
-@@ -1,16 +1,15 @@
+Author: Graham Inggs <ginggs at debian.org>
+last-Update: 2016-12-10
+--- a/Makefile
++++ b/Makefile
+@@ -1,16 +1,17 @@
  DEST_DIR = ~/bin
  
 -CFLAGS = -O3 -Wall -Wextra -Wno-unused-result -fno-strict-aliasing
 +CFLAGS += -O3 -Wall -Wextra -Wno-unused-result -fno-strict-aliasing
-+LDFLAGS += -lm
++LIBS = -lm
  
  ALL = DASqv DAStrim
  
@@ -17,9 +19,11 @@ Last-Update: 2016-10-20
  
  DASqv: DASqv.c align.c align.h DB.c DB.h QV.c QV.h
 -	gcc $(CFLAGS) -o DASqv DASqv.c align.c DB.c QV.c -lm
++	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o DASqv DASqv.c align.c DB.c QV.c $(LIBS)
  
  DAStrim: DAStrim.c align.c align.h DB.c DB.h QV.c QV.h
 -	gcc $(CFLAGS) -o DAStrim DAStrim.c align.c DB.c QV.c -lm
++	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o DAStrim DAStrim.c align.c DB.c QV.c $(LIBS)
  
  clean:
  	rm -f $(ALL)

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



More information about the debian-med-commit mailing list