add gcc 3.4.6
[openwrt/svn-archive/archive.git] / openwrt / toolchain / gcc / 3.4.6 / 300-libstdc++-pic.patch
1 # DP: Build and install libstdc++_pic.a library.
2
3 --- gcc/libstdc++-v3/src/Makefile.am~ 2003-02-28 09:21:05.000000000 +0100
4 +++ gcc/libstdc++-v3/src/Makefile.am 2003-02-28 09:28:50.000000000 +0100
5 @@ -224,6 +224,10 @@
6 @OPT_LDFLAGS@ @SECTION_LDFLAGS@ $(AM_CXXFLAGS) $(LDFLAGS) -o $@
7
8
9 +install-exec-local:
10 + $(AR) cru libstdc++_pic.a .libs/*.o $(top_builddir)/libsupc++/*.o
11 + $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir)
12 +
13 # Added bits to build debug library.
14 if GLIBCPP_BUILD_DEBUG
15 all-local: build_debug
16
17 --- gcc/libstdc++-v3/src/Makefile.in~ 2004-02-21 09:55:48.000000000 +0100
18 +++ gcc/libstdc++-v3/src/Makefile.in 2004-02-21 09:59:34.000000000 +0100
19 @@ -585,7 +585,7 @@
20
21 install-data-am: install-data-local
22
23 -install-exec-am: install-toolexeclibLTLIBRARIES
24 +install-exec-am: install-toolexeclibLTLIBRARIES install-exec-local
25
26 install-info: install-info-am
27
28 @@ -618,6 +618,7 @@
29 distclean-tags distdir dvi dvi-am info info-am install \
30 install-am install-data install-data-am install-data-local \
31 install-exec install-exec-am install-info install-info-am \
32 + install-exec-local \
33 install-man install-strip install-toolexeclibLTLIBRARIES \
34 installcheck installcheck-am installdirs maintainer-clean \
35 maintainer-clean-generic mostlyclean mostlyclean-compile \
36 @@ -707,6 +708,11 @@
37 install_debug:
38 (cd ${debugdir} && $(MAKE) \
39 toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install)
40 +
41 +install-exec-local:
42 + $(AR) cru libstdc++_pic.a .libs/*.o $(top_builddir)/libsupc++/*.o
43 + $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir)
44 +
45 # Tell versions [3.59,3.63) of GNU make to not export all variables.
46 # Otherwise a system limit (for SysV at least) may be exceeded.
47 .NOEXPORT: