From 2d03de0064bc019d1101dcd6cd4a31691a2eed8a Mon Sep 17 00:00:00 2001 From: hailfinger Date: Mon, 17 Aug 2009 16:30:53 +0000 Subject: Fix compilation on Nexenta which is Ubuntu with a Solaris kernel. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Stefan Reinauer git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@686 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- Makefile | 3 +++ README | 11 +++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 0141bef..f8400b0 100644 --- a/Makefile +++ b/Makefile @@ -70,6 +70,9 @@ CONFIG_SERPROG = yes ifeq ($(CONFIG_SERPROG), yes) FEATURE_CFLAGS += -D'SERPROG_SUPPORT=1' OBJS += serprog.o +ifeq ($(OS_ARCH), SunOS) +LIBS += -lsocket +endif endif FEATURE_CFLAGS += $(shell LC_ALL=C grep -q "FTDISUPPORT := yes" .features && printf "%s" "-D'FT2232_SPI_SUPPORT=1'") diff --git a/README b/README index 9f21c21..070acff 100644 --- a/README +++ b/README @@ -43,7 +43,7 @@ Linux et al: * 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 @@ To compile on FreeBSD, use: 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: -- cgit v1.2.1