patches/gcc/4.1.1/130-libstdc++-pic.patch
changeset 747 d3e603e7c17c
parent 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/4.1.1/130-libstdc++-pic.patch	Mon Jul 28 21:32:33 2008 +0000
     1.3 @@ -0,0 +1,50 @@
     1.4 +# DP: Build and install libstdc++_pic.a library.
     1.5 +
     1.6 +--- gcc/libstdc++-v3/src/Makefile.am
     1.7 ++++ gcc/libstdc++-v3/src/Makefile.am
     1.8 +@@ -214,6 +214,12 @@
     1.9 + 	  $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LDFLAGS) -o $@
    1.10 + 
    1.11 + 
    1.12 ++install-exec-local:
    1.13 ++ifeq ($(enable_shared),yes)
    1.14 ++	$(AR) cru libstdc++_pic.a .libs/*.o $(top_builddir)/libsupc++/*.o
    1.15 ++	$(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir)
    1.16 ++endif
    1.17 ++
    1.18 + # Added bits to build debug library.
    1.19 + if GLIBCXX_BUILD_DEBUG
    1.20 + all-local: build_debug
    1.21 +--- gcc/libstdc++-v3/src/Makefile.in
    1.22 ++++ gcc/libstdc++-v3/src/Makefile.in
    1.23 +@@ -627,7 +627,7 @@
    1.24 + 
    1.25 + install-data-am: install-data-local
    1.26 + 
    1.27 +-install-exec-am: install-toolexeclibLTLIBRARIES
    1.28 ++install-exec-am: install-toolexeclibLTLIBRARIES install-exec-local
    1.29 + 
    1.30 + install-info: install-info-am
    1.31 + 
    1.32 +@@ -660,6 +660,7 @@
    1.33 + 	distclean-libtool distclean-tags distdir dvi dvi-am html \
    1.34 + 	html-am info info-am install install-am install-data \
    1.35 + 	install-data-am install-data-local install-exec \
    1.36 ++	install-exec-local \
    1.37 + 	install-exec-am install-info install-info-am install-man \
    1.38 + 	install-strip install-toolexeclibLTLIBRARIES installcheck \
    1.39 + 	installcheck-am installdirs maintainer-clean \
    1.40 +@@ -743,6 +743,13 @@
    1.41 + install_debug:
    1.42 + 	(cd ${debugdir} && $(MAKE) \
    1.43 + 	toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install)
    1.44 ++
    1.45 ++install-exec-local:
    1.46 ++ifeq ($(enable_shared),yes)
    1.47 ++	$(AR) cru libstdc++_pic.a *.o $(top_builddir)/libsupc++/*.o
    1.48 ++	$(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir)
    1.49 ++endif
    1.50 ++
    1.51 + # Tell versions [3.59,3.63) of GNU make to not export all variables.
    1.52 + # Otherwise a system limit (for SysV at least) may be exceeded.
    1.53 + .NOEXPORT: