diff options
author | Bernhard Reutner-Fischer | 2009-01-22 13:27:14 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2009-01-22 13:27:14 +0000 |
commit | f6107c7e885da0f952569252798b7fc6b4d46411 (patch) | |
tree | fd02e6e2f5e0890c9a4e9ea5587ef225e50ff78c | |
parent | 498436586ef32d8751981aa3a2111fe978717b1f (diff) | |
download | busybox-f6107c7e885da0f952569252798b7fc6b4d46411.zip busybox-f6107c7e885da0f952569252798b7fc6b4d46411.tar.gz |
- add CONFIG_EXTRA_CFLAGS (thanks to keesj)
This helps with remembering additional flags like e.g. cpu settings for
people who did not configured their compiler to produce code for their cpu
per default.
-rw-r--r-- | Config.in | 6 | ||||
-rw-r--r-- | Makefile.flags | 5 |
2 files changed, 11 insertions, 0 deletions
@@ -411,6 +411,12 @@ config CROSS_COMPILER_PREFIX Native builds leave this empty. +config EXTRA_CFLAGS + string "Additional CFLAGS" + default "" + help + Additional CFLAGS to pass to the compiler verbatim. + endmenu menu 'Debugging Options' diff --git a/Makefile.flags b/Makefile.flags index e314802..ad8d5e1 100644 --- a/Makefile.flags +++ b/Makefile.flags @@ -81,6 +81,11 @@ CFLAGS_busybox += $(ARCH_PIE) CFLAGS += $(ARCH_FPIE) endif +ifneq ($(CONFIG_EXTRA_CFLAGS),) +CFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_CFLAGS))) +#")) +endif + LDLIBS += m crypt ifeq ($(CONFIG_PAM),y) |