Fix compilation on Nexenta which is Ubuntu with a Solaris kernel
Corresponding to flashrom svn r686.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
diff --git a/README b/README
index 9f21c21..070acff 100644
--- a/README
+++ b/README
@@ -43,7 +43,7 @@
* pciutils
* pciutils-devel / pciutils-dev / libpci-dev
- * zlib-devel / zlib1g-dev
+ * zlib-devel / zlib1g-dev (only needed if libpci is static)
On FreeBSD, you need the following ports:
@@ -58,15 +58,18 @@
gmake
+To compile on Nexenta, use:
+
+ make
+
To compile on Solaris, use:
- gmake LDFLAGS="-L$pathtolibpci -lpci -lz" CC="gcc -I$pathtopciheaders" \
- CFLAGS=-O2
+ gmake LDFLAGS="-L$pathtolibpci" CC="gcc -I$pathtopciheaders" CFLAGS=-O2
To compile on DragonFly BSD, use:
ln -s /usr/pkg/include/pciutils pci
- gmake CFLAGS=-I. LDFLAGS="-L/usr/pkg/lib -lpci -lz"
+ gmake CFLAGS=-I. LDFLAGS="-L/usr/pkg/lib"
To compile and run on Darwin/Mac OS X: