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 năm trước cách đây
mục cha
commit
8d38283b9c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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)