summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric Andersen2000-06-20 21:03:24 +0000
committerEric Andersen2000-06-20 21:03:24 +0000
commit28c88a9430ef7c0630e193af642b22b13292c2b3 (patch)
treec5352e731eefc82edba4af84af4b0ecd17135216 /Makefile
parent339b8923130e38d7a68a9488ce2d47b04fb8b146 (diff)
downloadbusybox-28c88a9430ef7c0630e193af642b22b13292c2b3.zip
busybox-28c88a9430ef7c0630e193af642b22b13292c2b3.tar.gz
Some makefile fixes to allow compiling with ucLibc (stuff turned off
by default of course). -Erik
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 386d8c3..0f5b82e 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,8 @@ DOSTATIC = false
# To compile vs an alternative libc, you may need to use/adjust
# the following lines to meet your needs. This is how I did it...
#CFLAGS+=-nostdinc -I/home/andersen/CVS/uC-libc/include -I/usr/include/linux
-#LDFLAGS+=-nostdlib -L/home/andersen/CVS/libc.a
+#LDFLAGS+=-nostdlib
+#LIBRARIES = /home/andersen/CVS/uC-libc/libc.a
CC = gcc
@@ -51,12 +52,12 @@ endif
# -D_GNU_SOURCE is needed because environ is used in init.c
ifeq ($(DODEBUG),true)
- CFLAGS += -Wall -g -D_GNU_SOURCE
- LDFLAGS =
+ CFLAGS += -Wall -g -fno-builtin -D_GNU_SOURCE
+ LDFLAGS +=
STRIP =
else
CFLAGS += -Wall $(OPTIMIZATION) -fomit-frame-pointer -fno-builtin -D_GNU_SOURCE
- LDFLAGS = -s
+ LDFLAGS += -s
STRIP = $(STRIPTOOL) --remove-section=.note --remove-section=.comment $(PROG)
#Only staticly link when _not_ debugging
ifeq ($(DOSTATIC),true)
@@ -79,7 +80,6 @@ ifndef $(PREFIX)
endif
-LIBRARIES =
OBJECTS = $(shell ./busybox.sh) busybox.o messages.o utility.o
CFLAGS += -DBB_VER='"$(VERSION)"'
CFLAGS += -DBB_BT='"$(BUILDTIME)"'