diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 8 insertions, 13 deletions
@@ -81,24 +81,19 @@ CROSS = | |||
81 | CC = $(CROSS)gcc | 81 | CC = $(CROSS)gcc |
82 | STRIPTOOL = $(CROSS)strip | 82 | STRIPTOOL = $(CROSS)strip |
83 | 83 | ||
84 | # To compile vs an alternative libc, you may need to use/adjust | 84 | # To compile vs uClibc, just use the compiler wrapper built by uClibc... |
85 | # the following lines to meet your needs. This is how I make | 85 | # Isn't that easy? Right now, uClibc needs BB_FEATURE_NFSMOUNT disabled |
86 | # busybox compile staticly with uClibc (needs BB_FEATURE_NFSMOUNT | 86 | # since uClibc's nfs support isn't ready yet. |
87 | # disabled at the moment). Note the _full_ path for LIBCDIR. | 87 | #CC = ../uClibc/extra/gcc-uClibc/gcc-uClibc-i386 |
88 | # This is because make doesn't do ~ expansion... | 88 | |
89 | #LIBCDIR=/home/andersen/CVS/uClibc | 89 | # To compile vs some other alternative libc, you may need to use/adjust |
90 | # the following lines to meet your needs... | ||
91 | #LIBCDIR=/usr/i486-linuxlibc1/ | ||
90 | #LDFLAGS+=-nostdlib | 92 | #LDFLAGS+=-nostdlib |
91 | #LIBRARIES = $(LIBCDIR)/libc.a -lgcc | 93 | #LIBRARIES = $(LIBCDIR)/libc.a -lgcc |
92 | #CROSS_CFLAGS+=-nostdinc -I$(LIBCDIR)/include -I$(GCCINCDIR) | 94 | #CROSS_CFLAGS+=-nostdinc -I$(LIBCDIR)/include -I$(GCCINCDIR) |
93 | #GCCINCDIR = $(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp") | 95 | #GCCINCDIR = $(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp") |
94 | 96 | ||
95 | # This is how I compile with the uClibc shared lib... | ||
96 | #LIBCDIR=/home/andersen/CVS/uClibc | ||
97 | #LDFLAGS+=-nostdlib | ||
98 | #LIBRARIES = -luClibc -lgcc $(LIBCDIR)/crt0.o | ||
99 | #CROSS_CFLAGS+=-nostdinc -I$(LIBCDIR)/include -I$(GCCINCDIR) | ||
100 | #GCCINCDIR = $(shell gcc -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp") | ||
101 | |||
102 | #-------------------------------------------------------- | 97 | #-------------------------------------------------------- |
103 | 98 | ||
104 | # use '-Os' optimization if available, else use -O2 | 99 | # use '-Os' optimization if available, else use -O2 |