From: Bernhard Reutner-Fischer Date: Thu, 22 Jan 2009 13:27:14 +0000 (-0000) Subject: - add CONFIG_EXTRA_CFLAGS (thanks to keesj) X-Git-Tag: 1_14_0~362 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f6107c7e885da0f952569252798b7fc6b4d46411;p=oweals%2Fbusybox.git - 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. --- 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 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 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)