]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
use CPPFLAGS if set
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 9 Apr 2018 04:14:00 +0000 (00:14 -0400)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 9 Apr 2018 13:39:49 +0000 (15:39 +0200)
CPPFLAGS is a traditional build environment variable used to set C
pre-processor flags.  Accept these flags during the build if they've
been set.

config.mk

index be798d396b3667d1baec08623612c1dcfb592901..5a09a86668f61495ba7d1b15976f10f8c329d820 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -34,7 +34,7 @@ INSTALL := install
 
 # Flags
 BUILD_LDFLAGS += $(LDFLAGS)
-BUILD_CFLAGS := $(CFLAGS) -std=c99 -D_GNU_SOURCE
+BUILD_CFLAGS := $(CFLAGS) $(CPPFLAGS) -std=c99 -D_GNU_SOURCE
 BUILD_CFLAGS += -Wno-unused -Wtype-limits -Wformat -Wformat-security -Wall
 BUILD_CFLAGS += -I$(abspath .) -I$(abspath lib/generic) -I$(abspath contrib)
 BUILD_CFLAGS += -DPACKAGE_VERSION="\"$(VERSION)\"" -DPREFIX="\"$(PREFIX)\"" -DMODULEDIR="\"$(MODULEDIR)\""