[BusyBox] bug#1086: Cannot build busybox-0.48
Larry Doolittle
ldoolitt at recycle.lbl.gov
Thu Jan 4 18:59:39 UTC 2001
Here is IMHO an appropriate level of improved CFLAGS support.
With this patch, Thomas would be able to say:
# make OPTIMIZATION=-O3 CFLAGS_EXTRA=-march=i686
- Larry
--- /home/ldoolitt/cvs/busybox/Makefile Thu Dec 21 08:50:34 2000
+++ Makefile Thu Jan 4 10:57:03 2001
@@ -28,6 +28,11 @@
# overridden at the command line. For example:
# make CROSS=powerpc-linux- BB_SRC_DIR=$HOME/busybox PREFIX=/mnt/app
+# If you want to add some simple compiler switches (like -march=i686),
+# especially from the command line, use this instead of CFLAGS directly.
+# For optimization overrides, it's better still to set OPTIMIZATION.
+CFLAGS_EXTRA =
+
# If you want a static binary, turn this on.
DOSTATIC = false
@@ -145,6 +150,9 @@
CFLAGS += -DINIT_SCRIPT='"$(BB_INIT_SCRIPT)"'
endif
+# Put user-supplied flags at the end, where they
+# have a chance of winning.
+CFLAGS += $(CFLAGS_EXTRA)
all: busybox busybox.links doc
More information about the busybox
mailing list