Dear Tabix developers,

Tabix is being distributed on Ubuntu

Ubuntu is building with --as-needed these days, see
https://wiki.ubuntu.com/NattyNarwhal/ToolchainTransition


This caused tabix to fail to build, as it is using LDFLAGS to contain
libraries to link against.


You can see a failure here:

https://launchpad.net/ubuntu/+source/tabix/0.2.5-1/+build/2497856/+files/buildlog_ubuntu-oneiric-i386.tabix_0.2.5-1_FAILEDTOBUILD.txt.gz
<https://bugs.launchpad.net/ubuntu/+source/tabix/+bug/803202>

You can reproduce it by attempting to build tabix on an Ubuntu Oneiric
machine or PPA.

Attached is the patch we applied, to do this correctly.


regards


David Shorten
Description: Reorder libraries to build with ld --as-needed
Author: David Shorten <dpshor...@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
--- a/Makefile
+++ b/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

Reply via email to