aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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