From f72a972739c01e68926bda45266425b1c984f068 Mon Sep 17 00:00:00 2001 From: Andreas Tille Date: Fri, 11 May 2012 13:35:43 +0200 Subject: [PATCH] Apply ld-as-needed.patch from Ubunto to enable --as-needed --- debian/changelog | 8 ++++++++ debian/patches/ld-as-needed.patch | 16 ++++++++++++++++ debian/patches/series | 1 + 3 files changed, 25 insertions(+) create mode 100644 debian/patches/ld-as-needed.patch diff --git a/debian/changelog b/debian/changelog index 90118da..caa61b5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +tabix (0.2.5-3) UNRELEASED; urgency=low + + * debian/patches/ld-as-needed.patch: Enable building with --as-needed + (Thanks to David Shorten for the patch) + Closes: #632150 + + -- Andreas Tille Fri, 11 May 2012 13:32:56 +0200 + tabix (0.2.5-2) unstable; urgency=low [ Charles Plessy ] diff --git a/debian/patches/ld-as-needed.patch b/debian/patches/ld-as-needed.patch new file mode 100644 index 0000000..89fa1ed --- /dev/null +++ b/debian/patches/ld-as-needed.patch @@ -0,0 +1,16 @@ +Description: Reorder libraries to build with ld --as-needed +Author: David Shorten +Bug-Ubuntu: http://bugs.launchpad.net/ubuntu/+source/tabix/+bug/803202 +Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=632150 +Last-Update: 2011-06-30 +--- tabix.orig/Makefile ++++ tabix/Makefile +@@ -38,7 +38,7 @@ + $(AR) -cru $@ $(LOBJS) + + tabix:lib $(AOBJS) +- $(CC) $(CFLAGS) -o $@ $(AOBJS) -lm $(LIBPATH) -lz -L. -ltabix ++ $(CC) $(CFLAGS) -o $@ $(AOBJS) -L. -ltabix -lm $(LIBPATH) -lz + + bgzip:bgzip.o bgzf.o knetfile.o + $(CC) $(CFLAGS) -o $@ bgzip.o bgzf.o knetfile.o -lz diff --git a/debian/patches/series b/debian/patches/series index 2effa73..32e9be1 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,2 +1,3 @@ count-set-but-not-used.patch use-dpkg-buildflags.patch +ld-as-needed.patch -- 2.30.2