Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-22 04:05:04 +0300
committerEric Andersen <andersen@codepoet.org>2001-01-22 04:05:04 +0300
commit0d5a08ed923acc955cb832992d46225951cb73d2 (patch)
treeae6424bb6d3fe7ed57c13012894b2c87a0153159 /Makefile
parentb098b6d74c28640284d920a8d2251ebd7574cb40 (diff)
Patch from Larry Doolittle to close bug #1086.
-Erik
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0438978df..7606b9f02 100644
--- a/Makefile
+++ b/Makefile
@@ -28,6 +28,11 @@ export VERSION
# 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
@@ -153,6 +158,9 @@ ifdef BB_INIT_SCRIPT
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