Skip to contentSkip to conversation

iproute2 - Split up cflags. Allows setting optimisation flags at compile time without patching the Makefile.

PATCH In review Christoph J. Thompson 1 participant 1 message Mar 1, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 2/4 iproute2 - Split up cflags. Allows setting optimisation flags at compile time without patching the Makefile.

modified: Makefile

---
 Makefile |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
Makefile +4 -2
index c6e4943..014d497 100644
@@ -29,8 +29,10 @@ ADDLIB+=ipx_ntop.o ipx_pton.o
 
 CC = gcc
 HOSTCC = gcc
-CCOPTS = -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall
-CFLAGS = $(CCOPTS) -I../include $(DEFINES)
+DEFINES += -D_GNU_SOURCE
+CCOPTS = -O2
+WFLAGS = -Wall -Wstrict-prototypes
+CFLAGS = $(WFLAGS) $(CCOPTS) -I../include $(DEFINES)
 YACCFLAGS = -d -t -v
 
 SUBDIRS=lib ip tc misc netem genl
Signature · 5 lines
1.7.4.4


-- 
Jabber: [email protected]