Ver Fonte

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 há 20 anos atrás
pai
commit
8d38283b9c
1 ficheiros alterados com 1 adições e 1 exclusões
  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)