svn commit: trunk/busybox
aldot at busybox.net
aldot at busybox.net
Thu Jan 22 13:27:16 UTC 2009
Author: aldot
Date: 2009-01-22 13:27:14 +0000 (Thu, 22 Jan 2009)
New Revision: 24962
Log:
- 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.
Modified:
trunk/busybox/Config.in
trunk/busybox/Makefile.flags
Changeset:
Modified: trunk/busybox/Config.in
===================================================================
--- trunk/busybox/Config.in 2009-01-22 11:18:44 UTC (rev 24961)
+++ trunk/busybox/Config.in 2009-01-22 13:27:14 UTC (rev 24962)
@@ -411,6 +411,12 @@
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'
Modified: trunk/busybox/Makefile.flags
===================================================================
--- trunk/busybox/Makefile.flags 2009-01-22 11:18:44 UTC (rev 24961)
+++ trunk/busybox/Makefile.flags 2009-01-22 13:27:14 UTC (rev 24962)
@@ -81,6 +81,11 @@
CFLAGS += $(ARCH_FPIE)
endif
+ifneq ($(CONFIG_EXTRA_CFLAGS),)
+CFLAGS += $(strip $(subst ",,$(CONFIG_EXTRA_CFLAGS)))
+#"))
+endif
+
LDLIBS += m crypt
ifeq ($(CONFIG_PAM),y)
More information about the busybox-cvs
mailing list