From c9a0fd99372c41f3b37b5181d6c4fb68aa4216f4 Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Fri, 4 Jun 2010 23:24:57 +0000 Subject: 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 Acked-by: Jonathan A. Kollasch --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7ebdba6..474d44f 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 -- cgit v1.1