packages/net/netio/patches/001-Makefile.patch
florian 8fa9b9c091 netio: fix passing our CFLAGS to the Makefile
Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@39821 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-08 00:57:29 +00:00

14 lines
459 B
Diff

--- 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