Package: xcftools Version: 1.0.7-3 Severity: normal Tags: patch User: debian-...@lists.debian.org Usertags: ld-as-needed
*** /tmp/tmp9Tia2b In Ubuntu, the attached patch from Michael Bienia <ge...@ubuntu.com> was applied to achieve the following: Add debian/patches/fix-as-needed-linking: Move $(LIBS) to the end of the linker call to fix FTBFS with ld --as-needed. Thanks for considering the patch.
diff -Nru xcftools-1.0.7/debian/patches/fix-as-needed-linking xcftools-1.0.7/debian/patches/fix-as-needed-linking --- xcftools-1.0.7/debian/patches/fix-as-needed-linking 1970-01-01 01:00:00.000000000 +0100 +++ xcftools-1.0.7/debian/patches/fix-as-needed-linking 2011-11-03 11:59:45.000000000 +0100 @@ -0,0 +1,30 @@ +Index: xcftools-1.0.7/Makefile.in +=================================================================== +--- xcftools-1.0.7.orig/Makefile.in 2010-12-05 12:12:02.000000000 +0100 ++++ xcftools-1.0.7/Makefile.in 2010-12-05 12:12:56.000000000 +0100 +@@ -71,21 +71,21 @@ + all: $(BINARIES) $(SCRIPTS) $(MANPAGES) po/stamp manpo/all + + xcfinfo$e: xcfinfo.$o $(FILEIO).$o enums.$o xcf-general.$o utils.$o nlsini.$o +- $(CC) $(LDFLAGS) $(LIBS) $^ -o $@ ++ $(CC) $(LDFLAGS) $^ -o $@ $(LIBS) + + xcf2pnm$e: xcf2pnm.$o $(FILEIO).$o enums.$o xcf-general.$o utils.$o nlsini.$o \ + pixels.$o flatten.$o flatspec.$o scaletab.$o table.$o +- $(CC) $(LDFLAGS) $(LIBS) $^ -o $@ ++ $(CC) $(LDFLAGS) $^ -o $@ $(LIBS) + + xcf2png$e: xcf2png.$o $(FILEIO).$o enums.$o xcf-general.$o utils.$o nlsini.$o \ + pixels.$o flatten.$o flatspec.$o scaletab.$o table.$o palette.$o +- $(CC) $(LDFLAGS) $(LIBS) -lpng $^ -o $@ ++ $(CC) $(LDFLAGS) $^ -o $@ $(LIBS) -lpng + + xcfview: xcfview.in Makefile + sed '1s,/usr/bin/perl,@PERL@,' < $< > $@ + + testscale$e: testscale.$o +- $(CC) $(LDFLAGS) $(LIBS) $^ -o $@ ++ $(CC) $(LDFLAGS) $^ -o $@ $(LIBS) + + install: all + for p in $(BINARIES) ; do \ diff -Nru xcftools-1.0.7/debian/patches/series xcftools-1.0.7/debian/patches/series --- xcftools-1.0.7/debian/patches/series 2011-09-20 18:25:17.000000000 +0200 +++ xcftools-1.0.7/debian/patches/series 2011-11-03 12:00:12.000000000 +0100 @@ -1,3 +1,4 @@ use_xdg_for_mime_type_handling remove_strip_from_Makefile libpng-1.5 +fix-as-needed-linking