mirror of
https://review.coreboot.org/flashrom.git
synced 2025-05-01 00:43:40 +02:00
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>
This commit is contained in:
parent
9f5f2158a7
commit
460b282fb4
6
Makefile
6
Makefile
@ -220,8 +220,10 @@ ifeq ($(NEED_PCI), yes)
|
|||||||
FEATURE_CFLAGS += -D'NEED_PCI=1'
|
FEATURE_CFLAGS += -D'NEED_PCI=1'
|
||||||
PROGRAMMER_OBJS += pcidev.o physmap.o hwaccess.o
|
PROGRAMMER_OBJS += pcidev.o physmap.o hwaccess.o
|
||||||
ifeq ($(OS_ARCH), NetBSD)
|
ifeq ($(OS_ARCH), NetBSD)
|
||||||
LIBS += -lpciutils # The libpci we want.
|
# The libpci we want is called libpciutils on NetBSD and needs NetBSD libpci.
|
||||||
LIBS += -l$(shell uname -p) # For (i386|x86_64)_iopl(2).
|
LIBS += -lpciutils -lpci
|
||||||
|
# For (i386|x86_64)_iopl(2).
|
||||||
|
LIBS += -l$(shell uname -p)
|
||||||
else
|
else
|
||||||
ifeq ($(OS_ARCH), DOS)
|
ifeq ($(OS_ARCH), DOS)
|
||||||
# FIXME There needs to be a better way to do this
|
# FIXME There needs to be a better way to do this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user