summaryrefslogtreecommitdiffstats
path: root/net/mgen/patches/200-cflags_override.patch
blob: 0e78d1f0c8643ae5fc1236944210cdc41fd830d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- 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