Apply ld-as-needed.patch from Ubunto to enable --as-needed
authorAndreas Tille <tille@debian.org>
Fri, 11 May 2012 11:35:43 +0000 (13:35 +0200)
committerAndreas Tille <tille@debian.org>
Fri, 11 May 2012 11:35:43 +0000 (13:35 +0200)
debian/changelog
debian/patches/ld-as-needed.patch [new file with mode: 0644]
debian/patches/series

index 90118da7bdf46b9d17b3869abbf147c74ced5454..caa61b52942177bab8ab100ce7d733fe4f71d2fb 100644 (file)
@@ -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 <dpshorten@gmail.com> for the patch)
+    Closes: #632150
+
+ -- Andreas Tille <tille@debian.org>  Fri, 11 May 2012 13:32:56 +0200
+
 tabix (0.2.5-2) unstable; urgency=low
 
   [ Charles Plessy ]
 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 (file)
index 0000000..89fa1ed
--- /dev/null
@@ -0,0 +1,16 @@
+Description: Reorder libraries to build with ld --as-needed
+Author: David Shorten <dpshorten@gmail.com>
+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
index 2effa734bb01c506f331cd76ff748c24e219d20d..32e9be16e39eb0b0af97b0f7de4eb113291e79b7 100644 (file)
@@ -1,2 +1,3 @@
 count-set-but-not-used.patch
 use-dpkg-buildflags.patch
 count-set-but-not-used.patch
 use-dpkg-buildflags.patch
+ld-as-needed.patch