aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorErik Andersen <andersen@codepoet.org>2000-04-28 00:18:56 +0000
committerErik Andersen <andersen@codepoet.org>2000-04-28 00:18:56 +0000
commit4f3f757d56fbf420ea5030dcf7ea971b3da3ab47 (patch)
treed986e9bb9f03bf1f83465c274c35c0d58ed544e4 /Makefile
parent227a59b05d6df9b4be5990915646249d6f548822 (diff)
downloadbusybox-w32-4f3f757d56fbf420ea5030dcf7ea971b3da3ab47.tar.gz
busybox-w32-4f3f757d56fbf420ea5030dcf7ea971b3da3ab47.tar.bz2
busybox-w32-4f3f757d56fbf420ea5030dcf7ea971b3da3ab47.zip
Latest and greatest. Some effort at libc5 (aiming towards newlib)
compatability. -Erik
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8332583cb..7a0752e58 100644
--- a/Makefile
+++ b/Makefile
@@ -37,8 +37,8 @@ ARCH := $(shell uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/')
37 37
38CC = gcc 38CC = gcc
39 39
40GCCMAJVERSION = $(shell $(CC) --version | sed -n "s/^[^0-9]*\([0-9]\)\.\([0-9].*\)[\.].*/\1/p") 40GCCMAJVERSION = $(shell $(CC) --version | cut -f1 -d'.')
41GCCMINVERSION = $(shell $(CC) --version | sed -n "s/^[^0-9]*\([0-9]\)\.\([0-9].*\)[\.].*/\2/p") 41GCCMINVERSION = $(shell $(CC) --version | cut -f2 -d'.')
42 42
43 43
44GCCSUPPORTSOPTSIZE = $(shell \ 44GCCSUPPORTSOPTSIZE = $(shell \
@@ -68,6 +68,7 @@ ifndef $(STRIPTOOL)
68 STRIPTOOL = strip 68 STRIPTOOL = strip
69endif 69endif
70 70
71#also to try -- use --prefix=/usr/my-libc2.0.7-stuff
71 72
72# -D_GNU_SOURCE is needed because environ is used in init.c 73# -D_GNU_SOURCE is needed because environ is used in init.c
73ifeq ($(DODEBUG),true) 74ifeq ($(DODEBUG),true)
@@ -77,6 +78,8 @@ ifeq ($(DODEBUG),true)
77else 78else
78 CFLAGS += -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE 79 CFLAGS += -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE
79 LDFLAGS = -s 80 LDFLAGS = -s
81 #CFLAGS += -nostdinc -I/home/andersen/apps/newlib/src/newlib/libc/include -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE
82 #LDFLAGS = -nostdlib -s -L/home/andersen/apps/newlib/src/newlib/libc.a
80 STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG) 83 STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG)
81 #Only staticly link when _not_ debugging 84 #Only staticly link when _not_ debugging
82 ifeq ($(DOSTATIC),true) 85 ifeq ($(DOSTATIC),true)