summaryrefslogtreecommitdiffstats
path: root/libc/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-05-17 20:12:16 +0000
committerEric Andersen <andersen@codepoet.org>2001-05-17 20:12:16 +0000
commitd13d4ad946a8e6e6b209e0fe6fee5d93bd38e3e2 (patch)
tree131222540e9f72ed73b8b1b00ba228902fbf0c47 /libc/Makefile
parent58903a0726aa2e7e2b8141772233752bffb6f0ec (diff)
downloaduClibc-alpine-d13d4ad946a8e6e6b209e0fe6fee5d93bd38e3e2.tar.bz2
uClibc-alpine-d13d4ad946a8e6e6b209e0fe6fee5d93bd38e3e2.tar.xz
Fix up some problems noted by August Hoerandl <ahoerandl@gmx.at>
when cross compiling with shared lib support, there were spots where the native 'ld' was mistakenly being called.
Diffstat (limited to 'libc/Makefile')
-rw-r--r--libc/Makefile2
1 files changed, 1 insertions, 1 deletions
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 \