BKrev: 3fc9686elu7kEVnpWpUoxus7HQpuzQ
for d in info man share/doc share/locale ; do
rm -rf ${CROSS_DIR}/$d
done
+
+ # Fix a few include links so cross builds are happier
+ if [ ! -e ${STAGING_DIR}/target/include/c++ ]; then
+ mkdir -p ${STAGING_DIR}/target/include
+ ln -s ${CROSS_DIR}/${TARGET_SYS}/include/c++ \
+ ${STAGING_DIR}/target/include/
+ fi
}
do_stage() {
make install_dev install_runtime install_utils
+
+ # Make links to ${STAGING_DIR}/target/include so many
+ # cross builds work easier...
+ mkdir -p ${STAGING_DIR}/target/include
+ for f in ${CROSS_DIR}/${TARGET_SYS}/include/*; do
+ ln -s $f ${STAGING_DIR}/target/include/
+ done
}
do_install() {