diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-01-22 13:27:14 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-01-22 13:27:14 +0000 |
commit | f6107c7e885da0f952569252798b7fc6b4d46411 (patch) | |
tree | fd02e6e2f5e0890c9a4e9ea5587ef225e50ff78c | |
parent | 498436586ef32d8751981aa3a2111fe978717b1f (diff) | |
download | busybox-w32-f6107c7e885da0f952569252798b7fc6b4d46411.tar.gz busybox-w32-f6107c7e885da0f952569252798b7fc6b4d46411.tar.bz2 busybox-w32-f6107c7e885da0f952569252798b7fc6b4d46411.zip |
- 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 | |||
411 | 411 | ||
412 | Native builds leave this empty. | 412 | Native builds leave this empty. |
413 | 413 | ||
414 | config EXTRA_CFLAGS | ||
415 | string "Additional CFLAGS" | ||
416 | default "" | ||
417 | help | ||
418 | Additional CFLAGS to pass to the compiler verbatim. | ||
419 | |||
414 | endmenu | 420 | endmenu |
415 | 421 | ||
416 | menu 'Debugging Options' | 422 | menu '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) | |||
81 | CFLAGS += $(ARCH_FPIE) | 81 | CFLAGS += $(ARCH_FPIE) |
82 | endif | 82 | endif |
83 | 83 | ||
84 | ifneq ($(CONFIG_EXTRA_CFLAGS),) | ||
85 | CFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_CFLAGS))) | ||
86 | #")) | ||
87 | endif | ||
88 | |||
84 | LDLIBS += m crypt | 89 | LDLIBS += m crypt |
85 | 90 | ||
86 | ifeq ($(CONFIG_PAM),y) | 91 | ifeq ($(CONFIG_PAM),y) |