diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-06-20 21:03:24 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-06-20 21:03:24 +0000 |
commit | 28c88a9430ef7c0630e193af642b22b13292c2b3 (patch) | |
tree | c5352e731eefc82edba4af84af4b0ecd17135216 | |
parent | 339b8923130e38d7a68a9488ce2d47b04fb8b146 (diff) | |
download | busybox-w32-28c88a9430ef7c0630e193af642b22b13292c2b3.tar.gz busybox-w32-28c88a9430ef7c0630e193af642b22b13292c2b3.tar.bz2 busybox-w32-28c88a9430ef7c0630e193af642b22b13292c2b3.zip |
Some makefile fixes to allow compiling with ucLibc (stuff turned off
by default of course).
-Erik
-rw-r--r-- | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -34,7 +34,8 @@ DOSTATIC = false | |||
34 | # To compile vs an alternative libc, you may need to use/adjust | 34 | # To compile vs an alternative libc, you may need to use/adjust |
35 | # the following lines to meet your needs. This is how I did it... | 35 | # the following lines to meet your needs. This is how I did it... |
36 | #CFLAGS+=-nostdinc -I/home/andersen/CVS/uC-libc/include -I/usr/include/linux | 36 | #CFLAGS+=-nostdinc -I/home/andersen/CVS/uC-libc/include -I/usr/include/linux |
37 | #LDFLAGS+=-nostdlib -L/home/andersen/CVS/libc.a | 37 | #LDFLAGS+=-nostdlib |
38 | #LIBRARIES = /home/andersen/CVS/uC-libc/libc.a | ||
38 | 39 | ||
39 | 40 | ||
40 | CC = gcc | 41 | CC = gcc |
@@ -51,12 +52,12 @@ endif | |||
51 | 52 | ||
52 | # -D_GNU_SOURCE is needed because environ is used in init.c | 53 | # -D_GNU_SOURCE is needed because environ is used in init.c |
53 | ifeq ($(DODEBUG),true) | 54 | ifeq ($(DODEBUG),true) |
54 | CFLAGS += -Wall -g -D_GNU_SOURCE | 55 | CFLAGS += -Wall -g -fno-builtin -D_GNU_SOURCE |
55 | LDFLAGS = | 56 | LDFLAGS += |
56 | STRIP = | 57 | STRIP = |
57 | else | 58 | else |
58 | CFLAGS += -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE | 59 | CFLAGS += -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE |
59 | LDFLAGS = -s | 60 | LDFLAGS += -s |
60 | STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG) | 61 | STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG) |
61 | #Only staticly link when _not_ debugging | 62 | #Only staticly link when _not_ debugging |
62 | ifeq ($(DOSTATIC),true) | 63 | ifeq ($(DOSTATIC),true) |
@@ -79,7 +80,6 @@ ifndef $(PREFIX) | |||
79 | endif | 80 | endif |
80 | 81 | ||
81 | 82 | ||
82 | LIBRARIES = | ||
83 | OBJECTS = $(shell ./busybox.sh) busybox.o messages.o utility.o | 83 | OBJECTS = $(shell ./busybox.sh) busybox.o messages.o utility.o |
84 | CFLAGS += -DBB_VER='"$(VERSION)"' | 84 | CFLAGS += -DBB_VER='"$(VERSION)"' |
85 | CFLAGS += -DBB_BT='"$(BUILDTIME)"' | 85 | CFLAGS += -DBB_BT='"$(BUILDTIME)"' |