d1fbde20fc
mgen build was spectacularly broken, not even being cross-compiled for the target, fix that and make sure that we use the toolchain binaries were relevant. Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/packages@39813 3c298f89-4303-0410-b956-a3cf2f4a3e73
26 lines
602 B
Diff
26 lines
602 B
Diff
--- a/unix/Makefile.linux
|
|
+++ b/unix/Makefile.linux
|
|
@@ -5,8 +5,8 @@
|
|
# 1) System specific additional libraries, include paths, etc
|
|
# (Where to find X11 libraries, etc)
|
|
#
|
|
-SYSTEM_INCLUDES = -I/usr/X11R6/include
|
|
-SYSTEM_LDFLAGS = -L/usr/X11R6/lib
|
|
+SYSTEM_INCLUDES ?= -I/usr/X11R6/include
|
|
+SYSTEM_LDFLAGS ?= -L/usr/X11R6/lib
|
|
SYSTEM_LIBS = -ldl -lpthread
|
|
|
|
# 2) System specific capabilities
|
|
@@ -39,8 +39,8 @@ SYSTEM_HAVES = -DLINUX -DHAVE_PSELECT -D
|
|
-DHAVE_ASSERT $(NETSEC)
|
|
|
|
SYSTEM = linux
|
|
-CC = g++
|
|
-RANLIB = ranlib
|
|
-AR = ar
|
|
+CC ?= g++
|
|
+RANLIB ?= ranlib
|
|
+AR ?= ar
|
|
|
|
include Makefile.common
|