6 gfortran gfortran-symlinks \
9 libmudflap libmudflap-dev \
18 ${bindir}/${TARGET_PREFIX}gcc \
19 ${bindir}/${TARGET_PREFIX}gccbug \
20 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/collect2 \
21 ${gcclibdir}/${TARGET_SYS}/${BINV}/*.o \
22 ${gcclibdir}/${TARGET_SYS}/${BINV}/specs \
23 ${gcclibdir}/${TARGET_SYS}/${BINV}/lib* \
24 ${gcclibdir}/${TARGET_SYS}/${BINV}/include* \
26 FILES_${PN}-symlinks = "\
33 ${bindir}/${TARGET_PREFIX}g77 \
34 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/f771 \
36 FILES_g77-symlinks = "\
41 ${bindir}/${TARGET_PREFIX}gfortran \
42 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/f951 \
44 FILES_gfortran-symlinks = "\
49 ${bindir}/${TARGET_PREFIX}cpp \
51 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1"
52 FILES_cpp-symlinks = "${bindir}/cpp"
54 FILES_gcov = "${bindir}/${TARGET_PREFIX}gcov"
55 FILES_gcov-symlinks = "${bindir}/gcov"
57 FILES_libgcc = "${base_libdir}/libgcc*.so.*"
58 FILES_libgcc-dev = "${base_libdir}/libgcc*.so"
60 # Called from within gcc-cross, so libdir is set wrong
61 FILES_libg2c = "${target_libdir}/libg2c.so.*"
65 ${libdir}/libfrtbegin.a \
69 ${bindir}/${TARGET_PREFIX}g++ \
70 ${libexecdir}/gcc/${TARGET_SYS}/${BINV}/cc1plus \
72 FILES_g++-symlinks = "\
77 FILES_libstdc++ = "${libdir}/libstdc++.so.*"
78 FILES_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 \
87 FILES_libgfortran-dev = "${libdir}/libgfortran.a \
88 ${libdir}/libgfortran.so \
89 ${libdir}/libgfortranbegin.a"
91 # We don't care about GNU_HASH in objc, so mask all errors
92 INSANE_SKIP_objc = "True"
93 FILES_objc = "${libdir}/libobjc*.so.* \
95 FILES_objc-dev = "${libdir}/libobjc*.so \
96 ${libdir}/libobjc*.la \
97 ${libdir}/libobjc*.a \
100 FILES_libmudflap = "${libdir}/libmudflap*.so.*"
101 FILES_libmudflap-dev = "\
102 ${libdir}/libmudflap*.so \
103 ${libdir}/libmudflap*.a \
104 ${libdir}/libmudflap*.a \
110 ${gcclibdir}/${TARGET_SYS}/${BINV}/include/README \
116 # Cleanup some of the ${libdir}{,exec}/gcc stuff ...
117 rm -r ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/install-tools
118 rm -r ${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/install-tools
120 # Hack around specs file assumptions
121 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
123 # Move libgcc_s into /lib
124 mkdir -p ${D}${base_libdir}
125 if [ -f ${D}${libdir}/nof/libgcc_s.so ]; then
126 mv ${D}${libdir}/nof/libgcc_s.so.* ${D}${base_libdir}
128 mv ${D}${libdir}/libgcc_s.so.* ${D}${base_libdir} || true
130 rm -f ${D}${libdir}/libgcc_s.so || true
131 ln -sf `echo ${libdir}/gcc/${TARGET_SYS}/${BINV} \
133 | sed -e 's,^/,,' -e 's,[^/]*,..,g'`/lib/libgcc_s.so.1 \
134 ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/libgcc_s.so
136 # We don't need libtool libraries
137 rm -f ${D}${libdir}/libg2c.la &>/dev/null || true
140 rm -rf ${D}${mandir}/man7
142 # We use libiberty from binutils
143 rm -f ${D}${libdir}/libiberty.a
147 # We care about g++ not c++
150 # We don't care about the gcc-<version> ones for this
153 # These sometimes show up, they are strange, we remove them
154 rm -f ${TARGET_ARCH}-*${TARGET_ARCH}-*
156 # Symlinks so we can use these trivially on the target
157 ln -sf ${TARGET_SYS}-g77 g77 || true
158 ln -sf ${TARGET_SYS}-gfortran gfortran || true
159 ln -sf ${TARGET_SYS}-g++ g++
160 ln -sf ${TARGET_SYS}-gcc gcc
161 ln -sf g77 f77 || true
162 ln -sf gfortran f95 || true
165 ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${base_libdir}/cpp
166 ln -sf ${bindir}/${TARGET_SYS}-cpp ${D}${bindir}/cpp
168 # Remove precompiled c++ headers as they are really big
169 rm -rf ${D}${includedir}/c++/${BINV}/${TARGET_SYS}/bits/*.gch