summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-crosssdk_4.2.3.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc/gcc-crosssdk_4.2.3.bb')
-rw-r--r--meta/packages/gcc/gcc-crosssdk_4.2.3.bb16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-crosssdk_4.2.3.bb b/meta/packages/gcc/gcc-crosssdk_4.2.3.bb
new file mode 100644
index 0000000..3a3d443
--- /dev/null
+++ b/meta/packages/gcc/gcc-crosssdk_4.2.3.bb
@@ -0,0 +1,16 @@
+require gcc-cross_${PV}.bb
+inherit crosssdk
+
+SYSTEMHEADERS = "${SDKPATH}/include"
+SYSTEMLIBS1 = "${SDKPATH}/lib/"
+
+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}#'
+}
OpenPOWER on IntegriCloud