From patchwork Sun Mar 21 20:41:50 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: superiotool Makefile patch Date: Sun, 21 Mar 2010 20:41:50 -0000 From: Christian Ruppert X-Patchwork-Id: 1110 Message-Id: <4BA6848E.30703@gentoo.org> To: coreboot@coreboot.org Hey guys, please apply/commit my patch to the superiotool directory. Signed-off and brief description can be found in the patch itself. For further information please take a look at [1] and [2]. [1] http://www.gentoo.org/proj/en/qa/asneeded.xml [2] http://blog.flameeyes.eu/tag/asneeded/ Acked-by: Ronald G. Minnich Index: util/superiotool/Makefile =================================================================== --- util/superiotool/Makefile (revision 5262) +++ util/superiotool/Makefile (working copy) @@ -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