From d13d4ad946a8e6e6b209e0fe6fee5d93bd38e3e2 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 17 May 2001 20:12:16 +0000 Subject: Fix up some problems noted by August Hoerandl when cross compiling with shared lib support, there were spots where the native 'ld' was mistakenly being called. --- libc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc') diff --git a/libc/Makefile b/libc/Makefile index 18142f9ee..35d6b3e4a 100644 --- a/libc/Makefile +++ b/libc/Makefile @@ -43,7 +43,7 @@ $(LIBNAME): subdirs shared: $(TOPDIR)lib/$(LIBNAME) @rm -rf tmp @mkdir tmp - @(cd tmp; CC=$(CC) /bin/sh ../../extra/scripts/get-needed-libgcc-objects.sh) + @(cd tmp; CC=$(CC) LD=$(LD) /bin/sh ../../extra/scripts/get-needed-libgcc-objects.sh) if [ -s ./tmp/libgcc-need.a ] ; then \ $(CC) -g $(LDFLAGS) -shared -o $(SHARED_FULLNAME) \ -Wl,-soname=$(SHARED_MAJORNAME) -Wl,--whole-archive \ -- cgit v1.2.3