aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-11-26 17:18:29 -0500
committerRob Landley <rob@landley.net>2006-11-26 17:18:29 -0500
commit61a9cc57e791d37c7940d5e5aa83806c0543635b (patch)
treeb815a60655fdb40baf14bd28e8547595a438629c /Makefile
parent6973a1d0e4c99e7bd07b239dee8a6c52c74ecb0f (diff)
downloadtoybox-61a9cc57e791d37c7940d5e5aa83806c0543635b.tar.gz
Reduce flag duplication and make kconfig use HOST_CC.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index f7352f1e..fcec4fda 100644
--- a/Makefile
+++ b/Makefile
@@ -2,8 +2,8 @@
# Copyright 2006 Rob Landley <rob@landley.net>
CFLAGS = -Wall -Wundef -Os -s
-CC = $(CROSS_COMPILE)gcc $(CFLAGS)
-HOST_CC = gcc $(CFLAGS)
+CC = $(CROSS_COMPILE)gcc $(CFLAGS) -funsigned-char
+HOST_CC = gcc $(CFLAGS) -funsigned-char
all: toybox
@@ -29,8 +29,8 @@ gen_config.h: .config
toyfiles = main.c toys/*.c lib/*.c
toybox: gen_config.h $(toyfiles) toys/toylist.h lib/lib.h toys.h
- $(CC) -Wall -Os -s -funsigned-char $(CFLAGS) -I . \
- $(toyfiles) -o toybox -ffunction-sections -fdata-sections -Wl,--gc-sections
+ $(CC) $(CFLAGS) -I . $(toyfiles) -o toybox \
+ -ffunction-sections -fdata-sections -Wl,--gc-sections
clean::
rm -f toybox gen_config.h