summaryrefslogtreecommitdiff
path: root/util/superiotool/Makefile
diff options
context:
space:
mode:
authorChristian Ruppert <idl0r@gentoo.org>2010-03-21 21:22:51 +0000
committerStefan Reinauer <stepan@openbios.org>2010-03-21 21:22:51 +0000
commit121f0b8cf0999af0ead783c72fab151156325a69 (patch)
tree91ee671276cb9ad39871d19d87c6c401936a54b6 /util/superiotool/Makefile
parentbd0381a705246fb7e94675999a92fe0e3c98ee8f (diff)
downloadcoreboot-121f0b8cf0999af0ead783c72fab151156325a69.tar.xz
Don't abuse LDFLAGS and fix linking with -Wl,--as-needed.
Signed-off-by: Christian Ruppert <idl0r@gentoo.org> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5263 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool/Makefile')
-rw-r--r--util/superiotool/Makefile6
1 files changed, 3 insertions, 3 deletions
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