diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-04-19 21:27:09 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-04-28 10:44:21 +0100 |
commit | 3669de7f96100a5d4fbfc9b4e2ebc16851ba98ea (patch) | |
tree | 66743557d4203b019988970a6fa3ac603c06c991 /meta/recipes-devtools/gcc/gcc-4.6.0/libstdc++-pic.dpatch | |
parent | 07a6bec75c59fec06d0947ada708482900bf067a (diff) | |
download | poky-3669de7f96100a5d4fbfc9b4e2ebc16851ba98ea.tar.gz |
gcc: Add recipes for 4.6.0
This is initial set of patches for testing them out
The patches need documentation is pending
Some patches especially uclibc related are not
needed they must be dropped.
(From OE-Core rev: 26858099bc104efc3b3d15d9298018285c551b9a)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.6.0/libstdc++-pic.dpatch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.6.0/libstdc++-pic.dpatch | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.0/libstdc++-pic.dpatch b/meta/recipes-devtools/gcc/gcc-4.6.0/libstdc++-pic.dpatch new file mode 100644 index 0000000000..70c9e81542 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.6.0/libstdc++-pic.dpatch | |||
@@ -0,0 +1,71 @@ | |||
1 | #! /bin/sh -e | ||
2 | |||
3 | # DP: Build and install libstdc++_pic.a library. | ||
4 | |||
5 | dir= | ||
6 | if [ $# -eq 3 -a "$2" = '-d' ]; then | ||
7 | pdir="-d $3" | ||
8 | dir="$3/" | ||
9 | elif [ $# -ne 1 ]; then | ||
10 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
11 | exit 1 | ||
12 | fi | ||
13 | case "$1" in | ||
14 | -patch) | ||
15 | patch $pdir -f --no-backup-if-mismatch -p0 < $0 | ||
16 | ;; | ||
17 | -unpatch) | ||
18 | patch $pdir -f --no-backup-if-mismatch -R -p0 < $0 | ||
19 | ;; | ||
20 | *) | ||
21 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
22 | exit 1 | ||
23 | esac | ||
24 | exit 0 | ||
25 | |||
26 | diff -ur libstdc++-v3/src/Makefile.am libstdc++-v3/src/Makefile.am | ||
27 | --- libstdc++-v3/src/Makefile.am~ 2004-04-16 21:04:05.000000000 +0200 | ||
28 | +++ libstdc++-v3/src/Makefile.am 2004-07-03 20:22:43.000000000 +0200 | ||
29 | @@ -210,6 +210,10 @@ | ||
30 | $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LDFLAGS) -o $@ | ||
31 | |||
32 | |||
33 | +install-exec-local: | ||
34 | + $(AR) cru libstdc++_pic.a .libs/*.o $(top_builddir)/libsupc++/*.o || touch libstdc++_pic.a | ||
35 | + $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir) | ||
36 | + | ||
37 | # Added bits to build debug library. | ||
38 | if GLIBCXX_BUILD_DEBUG | ||
39 | all-local: build_debug | ||
40 | diff -ur libstdc++-v3/src/Makefile.in libstdc++-v3/src/Makefile.in | ||
41 | --- libstdc++-v3/src/Makefile.in 2004-07-03 06:41:13.000000000 +0200 | ||
42 | +++ libstdc++-v3/src/Makefile.in 2004-07-03 20:25:05.000000000 +0200 | ||
43 | @@ -611,7 +611,7 @@ | ||
44 | |||
45 | install-data-am: install-data-local | ||
46 | |||
47 | -install-exec-am: install-toolexeclibLTLIBRARIES | ||
48 | +install-exec-am: install-toolexeclibLTLIBRARIES install-exec-local | ||
49 | |||
50 | install-info: install-info-am | ||
51 | |||
52 | @@ -644,6 +644,7 @@ | ||
53 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
54 | html-am info info-am install install-am install-data \ | ||
55 | install-data-am install-data-local install-exec \ | ||
56 | + install-exec-local \ | ||
57 | install-exec-am install-info install-info-am install-man \ | ||
58 | install-strip install-toolexeclibLTLIBRARIES installcheck \ | ||
59 | installcheck-am installdirs maintainer-clean \ | ||
60 | @@ -729,6 +730,11 @@ | ||
61 | install_debug: | ||
62 | (cd ${debugdir} && $(MAKE) \ | ||
63 | toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install) | ||
64 | + | ||
65 | +install-exec-local: | ||
66 | + $(AR) cru libstdc++_pic.a .libs/*.o $(top_builddir)/libsupc++/*.o || touch libstdc++_pic.a | ||
67 | + $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir) | ||
68 | + | ||
69 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
70 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
71 | .NOEXPORT: | ||