aboutsummaryrefslogtreecommitdiff
path: root/Makefile.flags
diff options
context:
space:
mode:
authorGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-01-22 13:27:14 +0000
committerGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2009-01-22 13:27:14 +0000
commitf6107c7e885da0f952569252798b7fc6b4d46411 (patch)
treefd02e6e2f5e0890c9a4e9ea5587ef225e50ff78c /Makefile.flags
parent498436586ef32d8751981aa3a2111fe978717b1f (diff)
downloadbusybox-f6107c7e885da0f952569252798b7fc6b4d46411.tar.gz
busybox-f6107c7e885da0f952569252798b7fc6b4d46411.tar.bz2
- 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.
Diffstat (limited to 'Makefile.flags')
-rw-r--r--Makefile.flags5
1 files changed, 5 insertions, 0 deletions
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)
CFLAGS += $(ARCH_FPIE)
endif
+ifneq ($(CONFIG_EXTRA_CFLAGS),)
+CFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_CFLAGS)))
+#"))
+endif
+
LDLIBS += m crypt
ifeq ($(CONFIG_PAM),y)