summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-package-target.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc/gcc-package-target.inc')
-rw-r--r--meta/packages/gcc/gcc-package-target.inc63
1 files changed, 1 insertions, 62 deletions
diff --git a/meta/packages/gcc/gcc-package-target.inc b/meta/packages/gcc/gcc-package-target.inc
index c1200b8bc7..f668211e71 100644
--- a/meta/packages/gcc/gcc-package-target.inc
+++ b/meta/packages/gcc/gcc-package-target.inc
@@ -5,11 +5,6 @@ PACKAGES = "\
5 g77 g77-symlinks \ 5 g77 g77-symlinks \
6 gfortran gfortran-symlinks \ 6 gfortran gfortran-symlinks \
7 gcov gcov-symlinks \ 7 gcov gcov-symlinks \
8 libmudflap libmudflap-dev \
9 libgcc-dev \
10 libstdc++-dev \
11 libg2c-dev \
12 libgfortran-dev \
13 ${PN}-doc \ 8 ${PN}-doc \
14" 9"
15 10
@@ -54,17 +49,6 @@ FILES_cpp-symlinks = "${bindir}/cpp"
54FILES_gcov = "${bindir}/${TARGET_PREFIX}gcov" 49FILES_gcov = "${bindir}/${TARGET_PREFIX}gcov"
55FILES_gcov-symlinks = "${bindir}/gcov" 50FILES_gcov-symlinks = "${bindir}/gcov"
56 51
57FILES_libgcc = "${base_libdir}/libgcc*.so.*"
58FILES_libgcc-dev = "${base_libdir}/libgcc*.so"
59
60# Called from within gcc-cross, so libdir is set wrong
61FILES_libg2c = "${target_libdir}/libg2c.so.*"
62FILES_libg2c-dev = "\
63 ${libdir}/libg2c.so \
64 ${libdir}/libg2c.a \
65 ${libdir}/libfrtbegin.a \
66"
67
68FILES_g++ = "\ 52FILES_g++ = "\
69 ${bindir}/${TARGET_PREFIX}g++ \ 53 ${bindir}/${TARGET_PREFIX}g++ \
70 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1plus \ 54 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1plus \
@@ -74,26 +58,6 @@ FILES_g++-symlinks = "\
74 ${bindir}/g++ \ 58 ${bindir}/g++ \
75" 59"
76 60
77FILES_libstdc++ = "${libdir}/libstdc++.so.*"
78FILES_libstdc++-dev = "\
79 ${includedir}/c++/${BINV} \
80 ${libdir}/libstdc++.so \
81 ${libdir}/libstdc++.la \
82 ${libdir}/libstdc++.a \
83 ${libdir}/libsupc++.la \
84 ${libdir}/libsupc++.a \
85"
86
87FILES_libgfortran-dev = "${libdir}/libgfortran.a \
88 ${libdir}/libgfortran.so \
89 ${libdir}/libgfortranbegin.a"
90
91FILES_libmudflap = "${libdir}/libmudflap*.so.*"
92FILES_libmudflap-dev = "\
93 ${libdir}/libmudflap*.so \
94 ${libdir}/libmudflap*.a \
95 ${libdir}/libmudflap*.a \
96"
97 61
98FILES_${PN}-doc = "\ 62FILES_${PN}-doc = "\
99 ${infodir} \ 63 ${infodir} \
@@ -102,7 +66,7 @@ FILES_${PN}-doc = "\
102" 66"
103 67
104do_install () { 68do_install () {
105 autotools_do_install 69 oe_runmake 'DESTDIR=${D}' install-host
106 70
107 # Cleanup some of the ${libdir}{,exec}/gcc stuff ... 71 # Cleanup some of the ${libdir}{,exec}/gcc stuff ...
108 rm -r ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/install-tools 72 rm -r ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/install-tools
@@ -111,28 +75,9 @@ do_install () {
111 # Hack around specs file assumptions 75 # Hack around specs file assumptions
112 test -f ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/specs && sed -i -e '/^*cross_compile:$/ { n; s/1/0/; }' ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/specs 76 test -f ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/specs && sed -i -e '/^*cross_compile:$/ { n; s/1/0/; }' ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/specs
113 77
114 # Move libgcc_s into /lib
115 mkdir -p ${D}${base_libdir}
116 if [ -f ${D}${libdir}/nof/libgcc_s.so ]; then
117 mv ${D}${libdir}/nof/libgcc_s.so.* ${D}${base_libdir}
118 else
119 mv ${D}${libdir}/libgcc_s.so.* ${D}${base_libdir} || true
120 fi
121 rm -f ${D}${libdir}/libgcc_s.so || true
122 ln -sf `echo ${libdir}/gcc/${TARGET_SYS}/${BINV} \
123 | tr -s / \
124 | sed -e 's,^/,,' -e 's,[^/]*,..,g'`/lib/libgcc_s.so.1 \
125 ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/libgcc_s.so
126
127 # We don't need libtool libraries
128 rm -f ${D}${libdir}/libg2c.la &>/dev/null || true
129
130 # Cleanup manpages.. 78 # Cleanup manpages..
131 rm -rf ${D}${mandir}/man7 79 rm -rf ${D}${mandir}/man7
132 80
133 # We use libiberty from binutils
134 rm -f ${D}${libdir}/libiberty.a
135
136 cd ${D}${bindir} 81 cd ${D}${bindir}
137 82
138 # We care about g++ not c++ 83 # We care about g++ not c++
@@ -141,9 +86,6 @@ do_install () {
141 # We don't care about the gcc-<version> ones for this 86 # We don't care about the gcc-<version> ones for this
142 rm -f *gcc-?.?* 87 rm -f *gcc-?.?*
143 88
144 # These sometimes show up, they are strange, we remove them
145 rm -f ${TARGET_ARCH}-*${TARGET_ARCH}-*
146
147 # Symlinks so we can use these trivially on the target 89 # Symlinks so we can use these trivially on the target
148 ln -sf ${TARGET_SYS}-g77 g77 || true 90 ln -sf ${TARGET_SYS}-g77 g77 || true
149 ln -sf ${TARGET_SYS}-gfortran gfortran || true 91 ln -sf ${TARGET_SYS}-gfortran gfortran || true
@@ -155,7 +97,4 @@ do_install () {
155 ln -sf gcc cc 97 ln -sf gcc cc
156 ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${base_libdir}/cpp 98 ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${base_libdir}/cpp
157 ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${bindir}/cpp 99 ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${bindir}/cpp
158
159 # Remove precompiled c++ headers as they are really big
160 rm -rf ${D}${includedir}/c++/${BINV}/${TARGET_SYS}/bits/*.gch
161} 100}