mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-22 22:22:23 +00:00
98bc4decde
Signed-off-by: Alexey Neyman <stilor@att.net>
29 lines
874 B
Diff
29 lines
874 B
Diff
Respect environment CPPFLAGS when we run ./configure so we can inject
|
|
random -D things without having to set CFLAGS/ASFLAGS
|
|
|
|
---
|
|
Makeconfig | 1 +
|
|
config.make.in | 1 +
|
|
2 files changed, 2 insertions(+)
|
|
|
|
--- a/Makeconfig
|
|
+++ b/Makeconfig
|
|
@@ -697,6 +697,7 @@
|
|
$(foreach lib,$(libof-$(basename $(@F))) \
|
|
$(libof-$(<F)) $(libof-$(@F)),$(CPPFLAGS-$(lib))) \
|
|
$(CPPFLAGS-$(<F)) $(CPPFLAGS-$(@F)) $(CPPFLAGS-$(basename $(@F)))
|
|
+CPPFLAGS += $(CPPFLAGS-config)
|
|
override CFLAGS = -std=gnu99 $(gnu89-inline-CFLAGS) \
|
|
$(filter-out %frame-pointer,$(+cflags)) $(+gccwarn-c) \
|
|
$(sysdep-CFLAGS) $(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) \
|
|
--- a/config.make.in
|
|
+++ b/config.make.in
|
|
@@ -107,6 +107,7 @@
|
|
CXX = @CXX@
|
|
BUILD_CC = @BUILD_CC@
|
|
CFLAGS = @CFLAGS@
|
|
+CPPFLAGS-config = @CPPFLAGS@
|
|
ASFLAGS-config = @ASFLAGS_config@
|
|
AR = @AR@
|
|
RANLIB = @RANLIB@
|