From f9856f80bcb4b7c65fb447021a118ccdff9042d9 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 11 Sep 2003 11:12:55 +0000 Subject: Peter Kjellerstedt writes: The attached patch allows $(CC) to contain spaces (something which we use). --- libc/Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libc/Makefile') 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: -- cgit v1.2.3