Explorar o código

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 %!s(int64=20) %!d(string=hai) anos
pai
achega
8d38283b9c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)