summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-06-04 23:24:57 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-06-04 23:24:57 +0000
commit460b282fb49e9e2d99aa623df927fa9775588702 (patch)
tree007d702fd85f54ccec88829ae98cce560cff15c6
parent9f5f2158a743fc2d7de63c05d38d8133c6b4d15d (diff)
downloadflashrom-460b282fb49e9e2d99aa623df927fa9775588702.tar.gz
flashrom-460b282fb49e9e2d99aa623df927fa9775588702.tar.bz2
flashrom-460b282fb49e9e2d99aa623df927fa9775588702.zip
Fix libpci linkage on NetBSD
NetBSD needs libpciutils (which is called libpci on pretty much every other platform and lives in the pciutils package) and apparently the libpciutils on NetBSD needs the NetBSD-native libpci (no equivalent on other platforms). Thanks to Jonathan A. Kollasch for reporting. Corresponding to flashrom svn r1033. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Jonathan A. Kollasch <jakllsch@kollasch.net>
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7ebdba64e..474d44ffb 100644
--- a/Makefile
+++ b/Makefile
@@ -220,8 +220,10 @@ ifeq ($(NEED_PCI), yes)
FEATURE_CFLAGS += -D'NEED_PCI=1'
PROGRAMMER_OBJS += pcidev.o physmap.o hwaccess.o
ifeq ($(OS_ARCH), NetBSD)
-LIBS += -lpciutils # The libpci we want.
-LIBS += -l$(shell uname -p) # For (i386|x86_64)_iopl(2).
+# The libpci we want is called libpciutils on NetBSD and needs NetBSD libpci.
+LIBS += -lpciutils -lpci
+# For (i386|x86_64)_iopl(2).
+LIBS += -l$(shell uname -p)
else
ifeq ($(OS_ARCH), DOS)
# FIXME There needs to be a better way to do this