summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Britton <gbritton@doomcom.org>2003-11-30 03:47:58 +0000
committerGerald Britton <gbritton@doomcom.org>2003-11-30 03:47:58 +0000
commit27425da0d59e9a412cef24e271f7a242c5414229 (patch)
treecb9092e446c83d49cf6976318f57d199656101a1
parente9e83232583886db8881345c51ada729966138bf (diff)
staging fixes for uclibc
BKrev: 3fc9686elu7kEVnpWpUoxus7HQpuzQ
-rw-r--r--gcc/gcc-uclibc-cross_3.3.2.oe7
-rw-r--r--uclibc/uclibc_0.9.21.oe7
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/gcc-uclibc-cross_3.3.2.oe b/gcc/gcc-uclibc-cross_3.3.2.oe
index 8170dcc576..2c215c380d 100644
--- a/gcc/gcc-uclibc-cross_3.3.2.oe
+++ b/gcc/gcc-uclibc-cross_3.3.2.oe
@@ -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
}
diff --git a/uclibc/uclibc_0.9.21.oe b/uclibc/uclibc_0.9.21.oe
index 1205c2d807..30166cd514 100644
--- a/uclibc/uclibc_0.9.21.oe
+++ b/uclibc/uclibc_0.9.21.oe
@@ -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() {