diff options
author | Erik Andersen <andersen@codepoet.org> | 2000-04-28 00:18:56 +0000 |
---|---|---|
committer | Erik Andersen <andersen@codepoet.org> | 2000-04-28 00:18:56 +0000 |
commit | 4f3f757d56fbf420ea5030dcf7ea971b3da3ab47 (patch) | |
tree | d986e9bb9f03bf1f83465c274c35c0d58ed544e4 /Makefile | |
parent | 227a59b05d6df9b4be5990915646249d6f548822 (diff) | |
download | busybox-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-- | 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/') | |||
37 | 37 | ||
38 | CC = gcc | 38 | CC = gcc |
39 | 39 | ||
40 | GCCMAJVERSION = $(shell $(CC) --version | sed -n "s/^[^0-9]*\([0-9]\)\.\([0-9].*\)[\.].*/\1/p") | 40 | GCCMAJVERSION = $(shell $(CC) --version | cut -f1 -d'.') |
41 | GCCMINVERSION = $(shell $(CC) --version | sed -n "s/^[^0-9]*\([0-9]\)\.\([0-9].*\)[\.].*/\2/p") | 41 | GCCMINVERSION = $(shell $(CC) --version | cut -f2 -d'.') |
42 | 42 | ||
43 | 43 | ||
44 | GCCSUPPORTSOPTSIZE = $(shell \ | 44 | GCCSUPPORTSOPTSIZE = $(shell \ |
@@ -68,6 +68,7 @@ ifndef $(STRIPTOOL) | |||
68 | STRIPTOOL = strip | 68 | STRIPTOOL = strip |
69 | endif | 69 | endif |
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 |
73 | ifeq ($(DODEBUG),true) | 74 | ifeq ($(DODEBUG),true) |
@@ -77,6 +78,8 @@ ifeq ($(DODEBUG),true) | |||
77 | else | 78 | else |
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) |