[flashrom] [patch] NetBSD/amd64 build fix (w/ actual patch)

Jonathan A. Kollasch jakllsch at kollasch.net
Sat Feb 13 04:07:26 CET 2010


Use uname -p instead of -m on NetBSD so we get the right
architecture library name.

Signed-off-by: Jonathan A. Kollasch <jakllsch at kollasch.net>
---
-------------- next part --------------
Index: Makefile
===================================================================
--- Makefile	(revision 899)
+++ Makefile	(working copy)
@@ -183,7 +183,7 @@
 PROGRAMMER_OBJS += pcidev.o physmap.o hwaccess.o
 ifeq ($(OS_ARCH), NetBSD)
 LIBS += -lpciutils #		The libpci we want.
-LIBS += -l$(shell uname -m) #	For (i386|x86_64)_iopl(2).
+LIBS += -l$(shell uname -p) #	For (i386|x86_64)_iopl(2).
 endif
 endif
 


More information about the flashrom mailing list