Package: gfxboot Version: 4.2.2-1 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu ubuntu-patch natty
gfxboot fails to build with the --as-needed option discussed in http://wiki.debian.org/ToolChain/DSOLinking (which is now the default in Ubuntu natty). With this option, it's important to put -lLIBRARY options *after* any objects that use them on the link line. * Correct link order, fixing build failure with 'ld --as-needed'. diff -u gfxboot-4.2.2/debian/patches/series gfxboot-4.2.2/debian/patches/series --- gfxboot-4.2.2/debian/patches/series +++ gfxboot-4.2.2/debian/patches/series @@ -3,0 +4 @@ +04-link-order.patch only in patch2: unchanged: --- gfxboot-4.2.2.orig/debian/patches/04-link-order.patch +++ gfxboot-4.2.2/debian/patches/04-link-order.patch @@ -0,0 +1,16 @@ +Author: Colin Watson <cjwat...@ubuntu.com> +Description: Fix link order with 'ld --as-needed' + +Index: b/Makefile +=================================================================== +--- a/Makefile ++++ b/Makefile +@@ -11,7 +11,7 @@ + all: bin2c gfxboot-compile bincode gfxboot-font addblack + + gfxboot-font: gfxboot-font.c +- $(CC) $(CFLAGS) -I /usr/include/freetype2 -lfreetype $< -o $@ ++ $(CC) $(CFLAGS) -I /usr/include/freetype2 $< -lfreetype -o $@ + + gfxboot-compile: gfxboot-compile.c vocabulary.h bincode.h + $(CC) $(CFLAGS) $< -o $@ Thanks, -- Colin Watson [cjwat...@ubuntu.com] -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org