[syslinux:master] isohybrid: Fix building with --as-needed

syslinux-bot for Micah Gersten micahg at ubuntu.com
Mon Jun 11 15:42:06 PDT 2012


Commit-ID:  5ccd0a7a5acc75a7f6c286875e1f0c149b8fcdb5
Gitweb:     http://www.syslinux.org/commit/5ccd0a7a5acc75a7f6c286875e1f0c149b8fcdb5
Author:     Micah Gersten <micahg at ubuntu.com>
AuthorDate: Mon, 11 Jun 2012 15:38:20 -0700
Committer:  H. Peter Anvin <hpa at linux.intel.com>
CommitDate: Mon, 11 Jun 2012 15:38:20 -0700

isohybrid: Fix building with --as-needed

The library link order was wrong.

This patch was picked from Ubuntu.

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

---
 utils/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/utils/Makefile b/utils/Makefile
index 44cb54f..be73993 100644
--- a/utils/Makefile
+++ b/utils/Makefile
@@ -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 $@ $^


More information about the Syslinux-commits mailing list