From ReelBox Maniacs
diff -Nur busybox-svn-14689/Rules.mak busybox-reel/Rules.mak
--- busybox-svn-14689/Rules.mak 2006-03-29 18:34:24.000000000 +0200
+++ busybox-reel/Rules.mak 2006-03-29 19:23:16.000000000 +0200
@@ -32,13 +32,13 @@
# by asking the CC compiler what arch it compiles things for, so unless
# your compiler is broken, you should not need to specify TARGET_ARCH
CROSS =$(subst ",, $(strip $(CROSS_COMPILER_PREFIX)))
-CC = $(CROSS)gcc
-AR = $(CROSS)ar
-AS = $(CROSS)as
-LD = $(CROSS)ld
-NM = $(CROSS)nm
-STRIP = $(CROSS)strip
-CPP = $(CC) -E
+CC ?= $(CROSS)gcc
+AR ?= $(CROSS)ar
+AS ?= $(CROSS)as
+LD ?= $(CROSS)ld
+NM ?= $(CROSS)nm
+STRIP ?= $(CROSS)strip
+CPP ?= $(CC) -E
SED ?= sed
@@ -47,8 +47,8 @@
TARGET_OS=linux
# Select the compiler needed to build binaries for your development system
-HOSTCC = gcc
-HOSTCFLAGS= -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
+HOSTCC ?= gcc
+HOSTCFLAGS ?= -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
# Ensure consistent sort order, 'gcc -print-search-dirs' behavior, etc.
LC_ALL:= C