diff options
-rw-r--r-- | meta/classes/sdk.bbclass | 5 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/meta/classes/sdk.bbclass b/meta/classes/sdk.bbclass index 63f12117eb..d6aca0fccd 100644 --- a/meta/classes/sdk.bbclass +++ b/meta/classes/sdk.bbclass | |||
@@ -6,15 +6,16 @@ OLD_PACKAGE_ARCH := ${PACKAGE_ARCH} | |||
6 | PACKAGE_ARCH = "${BUILD_ARCH}-${OLD_PACKAGE_ARCH}-sdk" | 6 | PACKAGE_ARCH = "${BUILD_ARCH}-${OLD_PACKAGE_ARCH}-sdk" |
7 | 7 | ||
8 | HOST_ARCH = "${BUILD_ARCH}" | 8 | HOST_ARCH = "${BUILD_ARCH}" |
9 | HOST_VENDOR = "${BUILD_VENDOR}" | 9 | HOST_VENDOR = "${TARGET_VENDOR}" |
10 | HOST_OS = "${BUILD_OS}" | 10 | HOST_OS = "${BUILD_OS}" |
11 | HOST_PREFIX = "${BUILD_PREFIX}" | 11 | HOST_PREFIX = "${BUILD_PREFIX}" |
12 | HOST_CC_ARCH = "${BUILD_CC_ARCH}" | 12 | HOST_CC_ARCH = "${BUILD_CC_ARCH}" |
13 | #HOST_SYS = "${HOST_ARCH}${TARGET_VENDOR}-${HOST_OS}" | ||
13 | 14 | ||
14 | CPPFLAGS = "${BUILD_CPPFLAGS}" | 15 | CPPFLAGS = "${BUILD_CPPFLAGS}" |
15 | CFLAGS = "${BUILD_CFLAGS}" | 16 | CFLAGS = "${BUILD_CFLAGS}" |
16 | CXXFLAGS = "${BUILD_CFLAGS}" | 17 | CXXFLAGS = "${BUILD_CFLAGS}" |
17 | LDFLAGS = "${BUILD_LDFLAGS}" | 18 | LDFLAGS = "${BUILDSDK_LDFLAGS}" |
18 | 19 | ||
19 | # Path prefixes | 20 | # Path prefixes |
20 | prefix = "${SDK_PREFIX}" | 21 | prefix = "${SDK_PREFIX}" |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 75a69f6dac..e392395d68 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -368,6 +368,11 @@ export TARGET_CXXFLAGS = "${TARGET_CFLAGS} -fpermissive" | |||
368 | export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \ | 368 | export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \ |
369 | -Wl,-rpath-link,${STAGING_LIBDIR_NATIVE} \ | 369 | -Wl,-rpath-link,${STAGING_LIBDIR_NATIVE} \ |
370 | -Wl,-rpath,${STAGING_LIBDIR_NATIVE} -Wl,-O1" | 370 | -Wl,-rpath,${STAGING_LIBDIR_NATIVE} -Wl,-O1" |
371 | |||
372 | BUILDSDK_LDFLAGS = "-L${STAGING_LIBDIR} \ | ||
373 | -Wl,-rpath-link,${STAGING_LIBDIR} \ | ||
374 | -Wl,-rpath,${libdir} -Wl,-O1" | ||
375 | |||
371 | export LDFLAGS = "${TARGET_LDFLAGS}" | 376 | export LDFLAGS = "${TARGET_LDFLAGS}" |
372 | export TARGET_LDFLAGS = "-Wl,-O1" | 377 | export TARGET_LDFLAGS = "-Wl,-O1" |
373 | #export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}${layout_libdir} \ | 378 | #export TARGET_LDFLAGS = "-L${STAGING_DIR_TARGET}${layout_libdir} \ |