summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-crosssdk.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc/gcc-crosssdk.inc')
-rw-r--r--meta/packages/gcc/gcc-crosssdk.inc16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-crosssdk.inc b/meta/packages/gcc/gcc-crosssdk.inc
new file mode 100644
index 0000000000..df3ff96075
--- /dev/null
+++ b/meta/packages/gcc/gcc-crosssdk.inc
@@ -0,0 +1,16 @@
1require gcc-cross_${PV}.bb
2inherit crosssdk
3
4SYSTEMHEADERS = "${SDKPATH}/include"
5SYSTEMLIBS1 = "${SDKPATH}/lib/"
6
7GCCMULTILIB = "--disable-multilib"
8
9DEPENDS = "virtual/${TARGET_PREFIX}binutils-crosssdk virtual/${TARGET_PREFIX}libc-for-gcc-nativesdk gettext-native"
10PROVIDES = "virtual/${TARGET_PREFIX}gcc-crosssdk virtual/${TARGET_PREFIX}g++-crosssdk"
11
12do_configure_prepend () {
13 # Change the default dynamic linker path to the one in the SDK
14 sed -i ${S}/gcc/config/*/linux*.h -e 's#\(GLIBC_DYNAMIC_LINKER.*\)/lib/#\1${SYSTEMLIBS1}#'
15 sed -i ${S}/gcc/config/*/linux*.h -e 's#\(GLIBC_DYNAMIC_LINKER.*\)/lib64/#\1${SYSTEMLIBS1}#'
16}