1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/patches/gcc/4.4.1/240-libstdc++-pic.patch Mon Feb 13 21:10:06 2012 +0100
1.3 @@ -0,0 +1,53 @@
1.4 +diff -durN gcc-4.4.0.orig/libstdc++-v3/src/Makefile.am gcc-4.4.0/libstdc++-v3/src/Makefile.am
1.5 +--- gcc-4.4.0.orig/libstdc++-v3/src/Makefile.am 2009-04-10 01:23:07.000000000 +0200
1.6 ++++ gcc-4.4.0/libstdc++-v3/src/Makefile.am 2009-05-27 21:38:34.000000000 +0200
1.7 +@@ -351,6 +351,13 @@
1.8 + $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@
1.9 +
1.10 +
1.11 ++install-exec-local:
1.12 ++ pic_objs=`sed -n "s:'::g;s:^pic_object=::p" *.lo | grep -v '^none$$'`; \
1.13 ++ if [ x"$$pic_objs" != x ]; then \
1.14 ++ $(AR) cru libstdc++_pic.a $$pic_objs $(top_builddir)/libsupc++/*.o || exit 1; \
1.15 ++ $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir) || exit 1; \
1.16 ++ fi
1.17 ++
1.18 + # Added bits to build debug library.
1.19 + if GLIBCXX_BUILD_DEBUG
1.20 + all-local: build_debug
1.21 +diff -durN gcc-4.4.0.orig/libstdc++-v3/src/Makefile.in gcc-4.4.0/libstdc++-v3/src/Makefile.in
1.22 +--- gcc-4.4.0.orig/libstdc++-v3/src/Makefile.in 2009-01-17 03:03:25.000000000 +0100
1.23 ++++ gcc-4.4.0/libstdc++-v3/src/Makefile.in 2009-05-27 21:38:34.000000000 +0200
1.24 +@@ -726,7 +726,7 @@
1.25 +
1.26 + install-data-am: install-data-local
1.27 +
1.28 +-install-exec-am: install-toolexeclibLTLIBRARIES
1.29 ++install-exec-am: install-toolexeclibLTLIBRARIES install-exec-local
1.30 +
1.31 + install-info: install-info-am
1.32 +
1.33 +@@ -765,7 +765,7 @@
1.34 + maintainer-clean-generic mostlyclean mostlyclean-compile \
1.35 + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1.36 + tags uninstall uninstall-am uninstall-info-am \
1.37 +- uninstall-toolexeclibLTLIBRARIES
1.38 ++ uninstall-toolexeclibLTLIBRARIES install-exec-local
1.39 +
1.40 +
1.41 + # Symbol versioning for shared libraries.
1.42 +@@ -942,6 +942,14 @@
1.43 + install_debug:
1.44 + (cd ${debugdir} && $(MAKE) \
1.45 + toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install)
1.46 ++
1.47 ++install-exec-local:
1.48 ++ pic_objs=`sed -n "s:'::g;s:^pic_object=::p" *.lo | grep -v '^none$$'`; \
1.49 ++ if [ x"$$pic_objs" != x ]; then \
1.50 ++ $(AR) cru libstdc++_pic.a $$pic_objs $(top_builddir)/libsupc++/*.o || exit 1; \
1.51 ++ $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir) || exit 1; \
1.52 ++ fi
1.53 ++
1.54 + # Tell versions [3.59,3.63) of GNU make to not export all variables.
1.55 + # Otherwise a system limit (for SysV at least) may be exceeded.
1.56 + .NOEXPORT: