From 84d11c8582a9911643014aa9c68d538e3c064997 Mon Sep 17 00:00:00 2001 From: Andreas Tille Date: Sat, 12 May 2012 08:52:57 +0200 Subject: [PATCH] ld-as-needed.patch needs to be adapted --- debian/changelog | 6 +++--- debian/patches/ld-as-needed.patch | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/debian/changelog b/debian/changelog index f788d41..477861c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,11 +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 * debian/patches/use-dpkg-buildflags.patch: Really enable hardening build flags (Thanks for the patch to Simon Ruderich ) Closes: #670759 + * 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 diff --git a/debian/patches/ld-as-needed.patch b/debian/patches/ld-as-needed.patch index 89fa1ed..bc0e2c8 100644 --- a/debian/patches/ld-as-needed.patch +++ b/debian/patches/ld-as-needed.patch @@ -5,12 +5,12 @@ 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 @@ +@@ -41,7 +41,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 +- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(AOBJS) -lm $(LIBPATH) -lz -L. -ltabix ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(AOBJS) -L. -ltabix -lm $(LIBPATH) -lz bgzip:bgzip.o bgzf.o knetfile.o - $(CC) $(CFLAGS) -o $@ bgzip.o bgzf.o knetfile.o -lz + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ bgzip.o bgzf.o knetfile.o -lz -- 2.30.2