From: Richard Purdie Date: Fri, 18 Sep 2009 00:03:57 +0000 (+0100) Subject: gcc-crosssdk: Add code to change the deafult linker path in the case of sdk binaries X-Git-Tag: 2011-1~6949 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=9943a3e063e32c85f13e26ed208859e0556dcfb9;p=openembedded-core.git gcc-crosssdk: Add code to change the deafult linker path in the case of sdk binaries Signed-off-by: Richard Purdie --- diff --git a/meta/packages/gcc/gcc-crosssdk_4.3.3.bb b/meta/packages/gcc/gcc-crosssdk_4.3.3.bb index f5967ba682..3a3d443413 100644 --- a/meta/packages/gcc/gcc-crosssdk_4.3.3.bb +++ b/meta/packages/gcc/gcc-crosssdk_4.3.3.bb @@ -8,3 +8,9 @@ GCCMULTILIB = "--disable-multilib" DEPENDS = "virtual/${TARGET_PREFIX}binutils-crosssdk virtual/${TARGET_PREFIX}libc-for-gcc-nativesdk" PROVIDES = "virtual/${TARGET_PREFIX}gcc-crosssdk virtual/${TARGET_PREFIX}g++-crosssdk" + +do_configure_prepend () { + # Change the default dynamic linker path to the one in the SDK + sed -i ${S}/gcc/config/*/linux*.h -e 's#\(GLIBC_DYNAMIC_LINKER.*\)/lib/#\1${SYSTEMLIBS1}#' + sed -i ${S}/gcc/config/*/linux*.h -e 's#\(GLIBC_DYNAMIC_LINKER.*\)/lib64/#\1${SYSTEMLIBS1}#' +}