From 121f0b8cf0999af0ead783c72fab151156325a69 Mon Sep 17 00:00:00 2001 From: Christian Ruppert Date: Sun, 21 Mar 2010 21:22:51 +0000 Subject: Don't abuse LDFLAGS and fix linking with -Wl,--as-needed. Signed-off-by: Christian Ruppert Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5263 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/superiotool/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util/superiotool/Makefile') diff --git a/util/superiotool/Makefile b/util/superiotool/Makefile index 6a6b69762f..f871fb7073 100644 --- a/util/superiotool/Makefile +++ b/util/superiotool/Makefile @@ -36,7 +36,7 @@ OBJS = superiotool.o ali.o fintek.o ite.o nsc.o smsc.o winbond.o 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 @@ CONFIG_PCI = yes ifeq ($(CONFIG_PCI), yes) CFLAGS += -DPCI_SUPPORT -LDFLAGS += -lpci +LIBS += -lpci OBJS += pci.o via.o endif @@ -53,7 +53,7 @@ all: $(PROGRAM) 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 -- cgit v1.2.3