packages/net/netio/patches/001-Makefile.patch

14 lines
459 B
Diff
Raw Permalink Normal View History

--- a/Makefile
+++ b/Makefile
@@ -84,8 +84,8 @@ solaris:
$(MAKE) all CC="gcc -O -s" O=.o X= \
CFLAGS="-DUNIX" LFLAGS="" LIBS="-lsocket -lpthread -lnsl" OUT=-o
linux:
- $(MAKE) all CC="gcc -O -s" O=.o X= \
- CFLAGS="-DUNIX" LFLAGS="" LIBS="-lpthread" OUT=-o
+ $(MAKE) all CC="$(CC) -O -s" O=.o X= \
+ LFLAGS="" LIBS="-lpthread" OUT=-o
macosx:
$(MAKE) all CC="gcc -O" O=.o X= \
CFLAGS="-DUNIX -DSOCKLEN_T" LFLAGS="" LIBS="-lpthread" OUT=-o