summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric Andersen2001-01-16 21:20:46 +0000
committerEric Andersen2001-01-16 21:20:46 +0000
commit9aa23ba5a81b877fbd87d481570573020c33b9c9 (patch)
treee484bef34f97cd70acbbf63c655cff740a120cbc /Makefile
parent541ffe30a279823c38b745c5e8c4971cb4a6cc41 (diff)
downloadbusybox-9aa23ba5a81b877fbd87d481570573020c33b9c9.zip
busybox-9aa23ba5a81b877fbd87d481570573020c33b9c9.tar.gz
Show an example of how to compile with uClibc.
-Erik
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ec2ffa6..19f024a 100644
--- a/Makefile
+++ b/Makefile
@@ -67,14 +67,22 @@ STRIPTOOL = $(CROSS)strip
# To compile vs an alternative libc, you may need to use/adjust
# the following lines to meet your needs. This is how I make
-# busybox compile with uC-Libc (needs BB_GETOPT and BB_FEATURE_NFSMOUNT
-# disabled at the moment).
+# busybox compile staticly with uClibc (needs BB_FEATURE_NFSMOUNT
+# disabled at the moment). Note the _full_ path for LIBCDIR.
+# This is because make doesn't do ~ expansion...
#LIBCDIR=/home/andersen/CVS/uClibc
#LDFLAGS+=-nostdlib
#LIBRARIES = $(LIBCDIR)/libc.a -lgcc
#CROSS_CFLAGS+=-nostdinc -I$(LIBCDIR)/include -I$(GCCINCDIR)
#GCCINCDIR = $(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp")
+# This is how I compile with the uClibc shared lib...
+#LIBCDIR=/home/andersen/CVS/uClibc
+#LDFLAGS+=-nostdlib
+#LIBRARIES = -luClibc -lgcc $(LIBCDIR)/crt0.o
+#CROSS_CFLAGS+=-nostdinc -I$(LIBCDIR)/include -I$(GCCINCDIR)
+#GCCINCDIR = $(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp")
+
#--------------------------------------------------------
# use '-Os' optimization if available, else use -O2