X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=tabix.git;a=blobdiff_plain;f=debian%2Fpatches%2Fld-as-needed.patch;fp=debian%2Fpatches%2Fld-as-needed.patch;h=89fa1ed243d4554670215b814a6bba9eb208f06e;hp=0000000000000000000000000000000000000000;hb=f72a972739c01e68926bda45266425b1c984f068;hpb=6a8d9c5ec550faceafbc8c577ebbceec34174343 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