gcc 4.6: port over the missing patch 850-use_shared_libgcc.patch to prevent libgcc...
[openwrt.git] / toolchain / gcc / patches / 4.6-linaro / 820-libgcc_pic.patch
1 --- a/libgcc/Makefile.in
2 +++ b/libgcc/Makefile.in
3 @@ -747,11 +747,12 @@ $(libgcov-objects): %$(objext): $(gcc_sr
4
5 # Static libraries.
6 libgcc.a: $(libgcc-objects)
7 +libgcc_pic.a: $(libgcc-s-objects)
8 libgcov.a: $(libgcov-objects)
9 libunwind.a: $(libunwind-objects)
10 libgcc_eh.a: $(libgcc-eh-objects)
11
12 -libgcc.a libgcov.a libunwind.a libgcc_eh.a:
13 +libgcc.a libgcov.a libunwind.a libgcc_eh.a libgcc_pic.a:
14 -rm -f $@
15
16 objects="$(objects)"; \
17 @@ -773,7 +774,7 @@ libgcc_s$(SHLIB_EXT): libunwind$(SHLIB_E
18 endif
19
20 ifeq ($(enable_shared),yes)
21 -all: libgcc_eh.a libgcc_s$(SHLIB_EXT)
22 +all: libgcc_eh.a libgcc_pic.a libgcc_s$(SHLIB_EXT)
23 ifneq ($(LIBUNWIND),)
24 all: libunwind$(SHLIB_EXT)
25 endif
26 @@ -954,6 +955,10 @@ install-shared:
27 chmod 644 $(DESTDIR)$(inst_libdir)/libgcc_eh.a
28 $(RANLIB) $(DESTDIR)$(inst_libdir)/libgcc_eh.a
29
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))))
This page took 0.048485 seconds and 5 git commands to generate.