2005-08-31 10:45:47 +00:00
|
|
|
INHIBIT_PACKAGE_STRIP = "1"
|
|
|
|
|
|
|
|
do_install () {
|
2010-03-29 21:27:13 +00:00
|
|
|
oe_runmake 'DESTDIR=${D}' install-host
|
2005-08-31 10:45:47 +00:00
|
|
|
|
2009-11-16 23:36:11 +00:00
|
|
|
install -d ${D}${target_base_libdir}
|
|
|
|
install -d ${D}${target_libdir}
|
2010-03-29 21:27:13 +00:00
|
|
|
|
2009-11-16 23:36:11 +00:00
|
|
|
# Link gfortran to g77 to satisfy not-so-smart configure or hard coded g77
|
|
|
|
# gfortran is fully backwards compatible. This is a safe and practical solution.
|
2010-04-22 14:20:05 +00:00
|
|
|
ln -sf ${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_PREFIX}gfortran ${STAGING_DIR_NATIVE}${prefix_native}/bin/${TARGET_PREFIX}g77 || true
|
|
|
|
ln -sf ${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin/gfortran ${STAGING_DIR_NATIVE}/${prefix_native}/${TARGET_SYS}/bin/g77 || true
|
2009-11-16 23:36:11 +00:00
|
|
|
|
|
|
|
# Remove things we don't need but keep share/java
|
|
|
|
for d in info man share/doc share/locale share/man share/info; do
|
2010-04-28 12:59:36 +00:00
|
|
|
rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/$d
|
2009-11-16 23:36:11 +00:00
|
|
|
done
|
|
|
|
|
2010-03-29 21:27:13 +00:00
|
|
|
# gcc-runtime requires some headers, we stash them here
|
2010-03-30 13:14:34 +00:00
|
|
|
if [ "${PN}" == "gcc-cross" -o "${PN}" == "gcc-crosssdk" ]; then
|
2010-03-30 09:43:15 +00:00
|
|
|
install -d ${D}${includedir}/gcc-build-internal
|
2010-03-30 13:14:34 +00:00
|
|
|
for f in *.h *.c libgcc.mvars; do
|
2010-03-30 09:43:15 +00:00
|
|
|
cp ${B}/gcc/$f ${D}${includedir}/gcc-build-internal/
|
|
|
|
done
|
2010-04-27 16:41:42 +00:00
|
|
|
if [ -f libgcc.mvars]; then
|
|
|
|
cp ${B}/gcc/libgcc.mvars ${D}${includedir}/gcc-build-internal/
|
|
|
|
fi
|
2010-03-30 09:43:15 +00:00
|
|
|
fi
|
2005-08-31 10:45:47 +00:00
|
|
|
}
|