1
0

820-libgcc_pic.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. commit c96312958c0621e72c9b32da5bc224ffe2161384
  2. Author: Felix Fietkau <nbd@openwrt.org>
  3. Date: Mon Oct 19 23:26:09 2009 +0000
  4. gcc: create a proper libgcc_pic.a static library for relinking (4.3.3+ for now, backport will follow)
  5. SVN-Revision: 18086
  6. --- a/libgcc/Makefile.in
  7. +++ b/libgcc/Makefile.in
  8. @@ -930,11 +930,12 @@ $(libgcov-driver-objects): %$(objext): $
  9. # Static libraries.
  10. libgcc.a: $(libgcc-objects)
  11. +libgcc_pic.a: $(libgcc-s-objects)
  12. libgcov.a: $(libgcov-objects)
  13. libunwind.a: $(libunwind-objects)
  14. libgcc_eh.a: $(libgcc-eh-objects)
  15. -libgcc.a libgcov.a libunwind.a libgcc_eh.a:
  16. +libgcc.a libgcov.a libunwind.a libgcc_eh.a libgcc_pic.a:
  17. -rm -f $@
  18. objects="$(objects)"; \
  19. @@ -958,7 +959,7 @@ all: libunwind.a
  20. endif
  21. ifeq ($(enable_shared),yes)
  22. -all: libgcc_eh.a libgcc_s$(SHLIB_EXT)
  23. +all: libgcc_eh.a libgcc_pic.a libgcc_s$(SHLIB_EXT)
  24. ifneq ($(LIBUNWIND),)
  25. all: libunwind$(SHLIB_EXT)
  26. libgcc_s$(SHLIB_EXT): libunwind$(SHLIB_EXT)
  27. @@ -1164,6 +1165,10 @@ install-shared:
  28. chmod 644 $(DESTDIR)$(inst_libdir)/libgcc_eh.a
  29. $(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc_eh.a
  30. + $(INSTALL_DATA) libgcc_pic.a $(mapfile) $(DESTDIR)$(inst_libdir)/
  31. + chmod 644 $(DESTDIR)$(inst_libdir)/libgcc_pic.a
  32. + $(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc_pic.a
  33. +
  34. $(subst @multilib_dir@,$(MULTIDIR),$(subst \
  35. @shlib_base_name@,libgcc_s,$(subst \
  36. @shlib_slibdir_qual@,$(MULTIOSSUBDIR),$(SHLIB_INSTALL))))