summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-09-11 11:12:55 +0000
committerEric Andersen <andersen@codepoet.org>2003-09-11 11:12:55 +0000
commitf9856f80bcb4b7c65fb447021a118ccdff9042d9 (patch)
tree529dc2af901694ca5f1171cd3adb74c913b88a99
parentfd82b0a352e37f552fdbd678cc76c4d1e5018714 (diff)
Peter Kjellerstedt writes:
The attached patch allows $(CC) to contain spaces (something which we use).
-rw-r--r--libc/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/libc/Makefile b/libc/Makefile
index e43580847..06676d486 100644
--- a/libc/Makefile
+++ b/libc/Makefile
@@ -31,9 +31,9 @@ TOPDIR=../
include $(TOPDIR)Rules.mak
ifeq ($(strip $(UCLIBC_CTOR_DTOR)),y)
-CRTOBJS="../../lib/crti.o ../../lib/crt0.o ../../lib/crtn.o"
+CRTOBJS=../../lib/crti.o ../../lib/crt0.o ../../lib/crtn.o
else
-CRTOBJS="../../lib/crt0.o"
+CRTOBJS=../../lib/crt0.o
endif
ifeq ($(strip $(ADD_LIBGCC_FUNCTIONS)),y)
@@ -76,9 +76,8 @@ $(LIBGCC_NEED): $(TOPDIR)lib/$(LIBNAME)
@rm -rf tmp
@mkdir tmp
$(AR) rv $@
- (cd tmp && CC=$(CC) LD=$(LD) LDFLAGS=$(CPU_LDFLAGS-y) NM=$(NM) AR=$(AR) \
- LIBGCC=$(LIBGCC) \
- CRTOBJS=$(CRTOBJS) \
+ (cd tmp && CC="$(CC)" LD="$(LD)" LDFLAGS="$(CPU_LDFLAGS-y)" \
+ NM="$(NM)" AR="$(AR)" LIBGCC="$(LIBGCC)" CRTOBJS="$(CRTOBJS)" \
/bin/sh $(TOPDIR)../extra/scripts/get-needed-libgcc-objects.sh)
halfclean: