diff options
author | Erik Andersen | 2000-04-28 00:18:56 +0000 |
---|---|---|
committer | Erik Andersen | 2000-04-28 00:18:56 +0000 |
commit | 4f3f757d56fbf420ea5030dcf7ea971b3da3ab47 (patch) | |
tree | d986e9bb9f03bf1f83465c274c35c0d58ed544e4 /Makefile | |
parent | 227a59b05d6df9b4be5990915646249d6f548822 (diff) | |
download | busybox-4f3f757d56fbf420ea5030dcf7ea971b3da3ab47.zip busybox-4f3f757d56fbf420ea5030dcf7ea971b3da3ab47.tar.gz |
Latest and greatest. Some effort at libc5 (aiming towards newlib)
compatability.
-Erik
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -37,8 +37,8 @@ ARCH := $(shell uname -m | sed -e 's/i.86/i386/' | sed -e 's/sparc.*/sparc/') CC = gcc -GCCMAJVERSION = $(shell $(CC) --version | sed -n "s/^[^0-9]*\([0-9]\)\.\([0-9].*\)[\.].*/\1/p") -GCCMINVERSION = $(shell $(CC) --version | sed -n "s/^[^0-9]*\([0-9]\)\.\([0-9].*\)[\.].*/\2/p") +GCCMAJVERSION = $(shell $(CC) --version | cut -f1 -d'.') +GCCMINVERSION = $(shell $(CC) --version | cut -f2 -d'.') GCCSUPPORTSOPTSIZE = $(shell \ @@ -68,6 +68,7 @@ ifndef $(STRIPTOOL) STRIPTOOL = strip endif +#also to try -- use --prefix=/usr/my-libc2.0.7-stuff # -D_GNU_SOURCE is needed because environ is used in init.c ifeq ($(DODEBUG),true) @@ -77,6 +78,8 @@ ifeq ($(DODEBUG),true) else CFLAGS += -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE LDFLAGS = -s + #CFLAGS += -nostdinc -I/home/andersen/apps/newlib/src/newlib/libc/include -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE + #LDFLAGS = -nostdlib -s -L/home/andersen/apps/newlib/src/newlib/libc.a STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG) #Only staticly link when _not_ debugging ifeq ($(DOSTATIC),true) |