aboutsummaryrefslogtreecommitdiff
path: root/util/superiotool/Makefile
diff options
context:
space:
mode:
authorJonathan Kollasch <jakllsch@kollasch.net>2010-10-24 14:10:35 +0000
committerJonathan A. Kollasch <jakllsch@kollasch.net>2010-10-24 14:10:35 +0000
commit51ac8382dc99be21760bb40a641325b276324a83 (patch)
tree76e332c44f999c60aa908c04c3e55db3d06de8b4 /util/superiotool/Makefile
parent3f91d813efe80045e322f7c6a767b403911b8a1c (diff)
Provide for I/O space access on NetBSD.
Signed-off-by: Jonathan Kollasch <jakllsch@kollasch.net> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5982 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/superiotool/Makefile')
-rw-r--r--util/superiotool/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/superiotool/Makefile b/util/superiotool/Makefile
index 566388ba31..bcdb107d71 100644
--- a/util/superiotool/Makefile
+++ b/util/superiotool/Makefile
@@ -46,6 +46,9 @@ CFLAGS = -O2 -Wall -Werror -Wstrict-prototypes -Wundef -Wstrict-aliasing \
LDFLAGS += -L/usr/local/lib
LIBS = -lz
endif
+ifeq ($(OS_ARCH), NetBSD)
+LDFLAGS = -l$(shell uname -p)
+endif
# Support for PCI-attached "Super I/Os" (e.g. in VIA VT82686A/B).
CONFIG_PCI = yes