aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Config.in6
-rw-r--r--Makefile.flags5
2 files changed, 11 insertions, 0 deletions
diff --git a/Config.in b/Config.in
index 4fd9d1111..fff6d83d5 100644
--- a/Config.in
+++ b/Config.in
@@ -411,6 +411,12 @@ config CROSS_COMPILER_PREFIX
411 411
412 Native builds leave this empty. 412 Native builds leave this empty.
413 413
414config EXTRA_CFLAGS
415 string "Additional CFLAGS"
416 default ""
417 help
418 Additional CFLAGS to pass to the compiler verbatim.
419
414endmenu 420endmenu
415 421
416menu 'Debugging Options' 422menu 'Debugging Options'
diff --git a/Makefile.flags b/Makefile.flags
index e31480204..ad8d5e1f9 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -81,6 +81,11 @@ CFLAGS_busybox += $(ARCH_PIE)
81CFLAGS += $(ARCH_FPIE) 81CFLAGS += $(ARCH_FPIE)
82endif 82endif
83 83
84ifneq ($(CONFIG_EXTRA_CFLAGS),)
85CFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_CFLAGS)))
86#"))
87endif
88
84LDLIBS += m crypt 89LDLIBS += m crypt
85 90
86ifeq ($(CONFIG_PAM),y) 91ifeq ($(CONFIG_PAM),y)