From b58a631942341b6ccb62ab400e862f404e22dbbf Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 1 Oct 2002 05:30:25 +0000 Subject: This commit contains a patch from Stefan Allius to change how uClibc handles _init and _fini, allowing shared lib constructors and destructors to initialize things in the correct sequence. Stefan ported the SH architecture. I then ported x86, arm, and mips. x86 and arm are working fine, but I don't think I quite got things correct for mips. --- libc/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/Makefile') diff --git a/libc/Makefile b/libc/Makefile index 401a56695..1809779d6 100644 --- a/libc/Makefile +++ b/libc/Makefile @@ -53,9 +53,9 @@ shared: $(TOPDIR)lib/$(LIBNAME) /bin/sh $(TOPDIR)../extra/scripts/get-needed-libgcc-objects.sh) $(LD) $(LDFLAGS) $(VERSION_SCRIPT) -soname=$(SHARED_MAJORNAME) -o $(SHARED_FULLNAME) \ --whole-archive ./tmp/libgcc-need.a $(LIBNAME) --no-whole-archive \ - $(TOPDIR)/libc/misc/internals/interp.o \ + -init __uClibc_init $(TOPDIR)/libc/misc/internals/interp.o \ $(LIBGCC) - @/bin/true #rm -rf tmp + @true #rm -rf tmp install -d $(TOPDIR)lib rm -f $(TOPDIR)lib/$(SHARED_FULLNAME) install -m 644 $(SHARED_FULLNAME) $(TOPDIR)lib -- cgit v1.2.3