Patchwork superiotool Makefile patch

login
register
about
Submitter Christian Ruppert
Date 2010-03-21 20:41:50
Message ID <4BA6848E.30703@gentoo.org>
Download mbox | patch
Permalink /patch/1110/
State Accepted
Commit r5263
Headers show

Comments

Christian Ruppert - 2010-03-21 20:41:50
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/
ron minnich - 2010-03-21 21:57:25
On Sun, Mar 21, 2010 at 1:41 PM, Christian Ruppert <idl0r@gentoo.org> wrote:
> 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].

makes sense to me

Acked-by: Ronald G. Minnich <rminnich@gmail.com>

Patch

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