Browse Source

Ok.. we need to link with libgcc.a for some archs. I haven't looked at
all cases, but the archs I've looked at do build the needed routines as
PIC so we should be ok.

Manuel Novoa III 20 years ago
parent
commit
8d38283b9c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libc/Makefile

+ 1 - 1
libc/Makefile

@@ -58,7 +58,7 @@ shared: $(TOPDIR)lib/$(LIBNAME)
 	$(LD) $(LDFLAGS) $(VERSION_SCRIPT) -soname=$(SHARED_MAJORNAME) -o $(SHARED_FULLNAME) \
 		--whole-archive $(LIBNAME) \
 		$(TOPDIR)libc/misc/internals/interp.o --no-whole-archive \
-		-init __uClibc_init
+		-init __uClibc_init $(LIBGCC)
 	@true #$(RM) -r tmp
 	$(INSTALL) -d $(TOPDIR)lib
 	$(RM) $(TOPDIR)lib/$(SHARED_FULLNAME)