summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8a9c13f..d2f04ec 100644
--- a/Makefile
+++ b/Makefile
@@ -178,6 +178,10 @@ PROGRAMMER_OBJS += pcidev.o physmap.o internal.o #FIXME: We need to move stuff
# into internal-programmer-only stuff
# and a support lib for all internal+pci
# based stuff.
+ifeq ($(OS_ARCH), NetBSD)
+LIBS += -lpciutils # The libpci we want.
+LIBS += -l$(shell uname -m) # For (i386|x86_64)_iopl(2).
+endif
endif
ifeq ($(CONFIG_PRINT_WIKI), yes)
OpenPOWER on IntegriCloud