aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-16 21:20:46 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-16 21:20:46 +0000
commit9aa23ba5a81b877fbd87d481570573020c33b9c9 (patch)
treee484bef34f97cd70acbbf63c655cff740a120cbc
parent541ffe30a279823c38b745c5e8c4971cb4a6cc41 (diff)
downloadbusybox-w32-9aa23ba5a81b877fbd87d481570573020c33b9c9.tar.gz
busybox-w32-9aa23ba5a81b877fbd87d481570573020c33b9c9.tar.bz2
busybox-w32-9aa23ba5a81b877fbd87d481570573020c33b9c9.zip
Show an example of how to compile with uClibc.
-Erik
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ec2ffa6df..19f024a43 100644
--- a/Makefile
+++ b/Makefile
@@ -67,14 +67,22 @@ STRIPTOOL = $(CROSS)strip
67 67
68# To compile vs an alternative libc, you may need to use/adjust 68# To compile vs an alternative libc, you may need to use/adjust
69# the following lines to meet your needs. This is how I make 69# the following lines to meet your needs. This is how I make
70# busybox compile with uC-Libc (needs BB_GETOPT and BB_FEATURE_NFSMOUNT 70# busybox compile staticly with uClibc (needs BB_FEATURE_NFSMOUNT
71# disabled at the moment). 71# disabled at the moment). Note the _full_ path for LIBCDIR.
72# This is because make doesn't do ~ expansion...
72#LIBCDIR=/home/andersen/CVS/uClibc 73#LIBCDIR=/home/andersen/CVS/uClibc
73#LDFLAGS+=-nostdlib 74#LDFLAGS+=-nostdlib
74#LIBRARIES = $(LIBCDIR)/libc.a -lgcc 75#LIBRARIES = $(LIBCDIR)/libc.a -lgcc
75#CROSS_CFLAGS+=-nostdinc -I$(LIBCDIR)/include -I$(GCCINCDIR) 76#CROSS_CFLAGS+=-nostdinc -I$(LIBCDIR)/include -I$(GCCINCDIR)
76#GCCINCDIR = $(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp") 77#GCCINCDIR = $(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp")
77 78
79# This is how I compile with the uClibc shared lib...
80#LIBCDIR=/home/andersen/CVS/uClibc
81#LDFLAGS+=-nostdlib
82#LIBRARIES = -luClibc -lgcc $(LIBCDIR)/crt0.o
83#CROSS_CFLAGS+=-nostdinc -I$(LIBCDIR)/include -I$(GCCINCDIR)
84#GCCINCDIR = $(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp")
85
78#-------------------------------------------------------- 86#--------------------------------------------------------
79 87
80# use '-Os' optimization if available, else use -O2 88# use '-Os' optimization if available, else use -O2