From 5d8244d623279f31e4317af2a137ed9f9967f0ad Mon Sep 17 00:00:00 2001 From: Christopher Meng Date: Fri, 14 Feb 2014 14:58:39 +0800 Subject: [PATCH] Update Makefile Preclude cflags overriding. Fedora has %optflags for building, if I use CFLAGS="%{optflags}" during building, it will override the fPIC and custom flags defined, and it's incorrect. Therefore we should avoid that issue. --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 37e0bb1..4ee3ef7 100644 --- a/Makefile +++ b/Makefile @@ -25,10 +25,9 @@ APIVERSION = 1 #LDFLAGS = -Wl,--no-undefined CFLAGS ?= -Os #CFLAGS = -g -O0 -CFLAGS += -fPIC -CFLAGS += -Wall -CFLAGS += -Wextra -CFLAGS += -DENABLE_STRNATPMPERR +override CFLAGS += -Wall +override CFLAGS += -Wextra +override CFLAGS += -fPIC -DENABLE_STRNATPMPERR LIBOBJS = natpmp.o getgateway.o