[coreboot] [commit] r5263 - trunk/util/superiotool

repository service svn at coreboot.org
Sun Mar 21 22:22:51 CET 2010


Author: stepan
Date: Sun Mar 21 22:22:51 2010
New Revision: 5263
URL: https://tracker.coreboot.org/trac/coreboot/changeset/5263

Log:
Don't abuse LDFLAGS and fix linking with -Wl,--as-needed.

Signed-off-by: Christian Ruppert <idl0r at gentoo.org>
Acked-by: Stefan Reinauer <stepan at coresystems.de>

Modified:
   trunk/util/superiotool/Makefile

Modified: trunk/util/superiotool/Makefile
==============================================================================
--- trunk/util/superiotool/Makefile	Fri Mar 19 22:57:40 2010	(r5262)
+++ trunk/util/superiotool/Makefile	Sun Mar 21 22:22:51 2010	(r5263)
@@ -36,7 +36,7 @@
 
 OS_ARCH = $(shell uname)
 ifeq ($(OS_ARCH), Darwin)
-LDFLAGS = -framework IOKit -framework DirectIO -lpci -lz
+LIBS = -framework IOKit -framework DirectIO -lpci -lz
 endif
 
 # Support for PCI-attached "Super I/Os" (e.g. in VIA VT82686A/B).
@@ -44,7 +44,7 @@
 
 ifeq ($(CONFIG_PCI), yes)
 CFLAGS += -DPCI_SUPPORT
-LDFLAGS += -lpci
+LIBS += -lpci
 OBJS += pci.o via.o
 endif
 
@@ -53,7 +53,7 @@
 superiotool.o: *.c superiotool.h
 
 $(PROGRAM): $(OBJS) superiotool.h
-	$(CC) $(LDFLAGS) -o $(PROGRAM) $(OBJS)
+	$(CC) $(LDFLAGS) -o $(PROGRAM) $(OBJS) $(LIBS)
 
 install: $(PROGRAM)
 	mkdir -p $(DESTDIR)$(PREFIX)/sbin




More information about the coreboot mailing list