staging fixes for uclibc
authorGerald Britton <gbritton@doomcom.org>
Sun, 30 Nov 2003 03:47:58 +0000 (03:47 +0000)
committerGerald Britton <gbritton@doomcom.org>
Sun, 30 Nov 2003 03:47:58 +0000 (03:47 +0000)
BKrev: 3fc9686elu7kEVnpWpUoxus7HQpuzQ

gcc/gcc-uclibc-cross_3.3.2.oe
uclibc/uclibc_0.9.21.oe

index 8170dcc..2c215c3 100644 (file)
@@ -52,4 +52,11 @@ do_stage_append () {
        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
 }
index 1205c2d..30166cd 100644 (file)
@@ -57,6 +57,13 @@ python do_patch () {
 
 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() {