isohybrid: Fix building with --as-needed
authorMicah Gersten <micahg@ubuntu.com>
Mon, 11 Jun 2012 22:38:20 +0000 (15:38 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Mon, 11 Jun 2012 22:38:20 +0000 (15:38 -0700)
The library link order was wrong.

This patch was picked from Ubuntu.

Reported-and-tested-by: Tim Fletcher <tim@night-shade.org.uk>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
utils/Makefile

index 44cb54f..be73993 100644 (file)
@@ -51,7 +51,7 @@ isohdpfx.c: $(ISOHDPFX) isohdpfxarray.pl
        $(PERL) isohdpfxarray.pl $(ISOHDPFX) > $@
 
 isohybrid: isohybrid.o isohdpfx.o
-       $(CC) $(LDFLAGS) -luuid -o $@ $^
+       $(CC) $(LDFLAGS) -o $@ $^ -luuid
 
 gethostip: gethostip.o
        $(CC) $(LDFLAGS) -o $@ $^