diff options
author | Enrico Scholz <enrico.scholz@sigma-chemnitz.de> | 2012-01-12 17:30:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-17 14:53:23 +0000 |
commit | 35759f977eec6ef81e125a509a7148d7e53a6515 (patch) | |
tree | 25711959a7861226aea785fa888e89b9c9e3e834 /meta/conf | |
parent | 73a7876b27393c2e3ea6bbb110fbfd68771b8cc3 (diff) | |
download | poky-35759f977eec6ef81e125a509a7148d7e53a6515.tar.gz |
bitbake.conf: search /lib for -native builds
Changes to BUILD_LDFLAGS are required due to the recent movement of some
libraries from ${libdir} to ${base_libdir}. ${base_libdir} must be now
in the linker search path to avoid build problems of -native packages.
(From OE-Core rev: 46bf69dcfa99a3a8677b241bb32bed2f30255ece)
Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/bitbake.conf | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 43eedad046..d0513637d0 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -49,6 +49,7 @@ bindir_native = "${prefix_native}/bin" | |||
49 | sbindir_native = "${prefix_native}/sbin" | 49 | sbindir_native = "${prefix_native}/sbin" |
50 | includedir_native = "${prefix_native}/include" | 50 | includedir_native = "${prefix_native}/include" |
51 | libdir_native = "${prefix_native}/lib" | 51 | libdir_native = "${prefix_native}/lib" |
52 | base_libdir_native = "/lib" | ||
52 | datadir_native = "${prefix_native}/share" | 53 | datadir_native = "${prefix_native}/share" |
53 | bindir_cross = "/bin" | 54 | bindir_cross = "/bin" |
54 | bindir_crossscripts = "${bindir}/crossscripts" | 55 | bindir_crossscripts = "${bindir}/crossscripts" |
@@ -330,6 +331,7 @@ STAGING_BINDIR_NATIVE = "${STAGING_DIR_NATIVE}${bindir_native}" | |||
330 | STAGING_BINDIR_CROSS = "${STAGING_BINDIR}/crossscripts" | 331 | STAGING_BINDIR_CROSS = "${STAGING_BINDIR}/crossscripts" |
331 | STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}" | 332 | STAGING_BINDIR_TOOLCHAIN = "${STAGING_DIR_NATIVE}${bindir_native}/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS}" |
332 | STAGING_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${libdir_native}" | 333 | STAGING_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${libdir_native}" |
334 | STAGING_BASE_LIBDIR_NATIVE = "${STAGING_DIR_NATIVE}${base_libdir_native}" | ||
333 | STAGING_INCDIR_NATIVE = "${STAGING_DIR_NATIVE}${includedir_native}" | 335 | STAGING_INCDIR_NATIVE = "${STAGING_DIR_NATIVE}${includedir_native}" |
334 | STAGING_ETCDIR_NATIVE = "${STAGING_DIR_NATIVE}${sysconfdir_native}" | 336 | STAGING_ETCDIR_NATIVE = "${STAGING_DIR_NATIVE}${sysconfdir_native}" |
335 | STAGING_DATADIR_NATIVE = "${STAGING_DIR_NATIVE}${datadir_native}" | 337 | STAGING_DATADIR_NATIVE = "${STAGING_DIR_NATIVE}${datadir_native}" |
@@ -462,8 +464,12 @@ export CXXFLAGS = "${TARGET_CXXFLAGS}" | |||
462 | export TARGET_CXXFLAGS = "${TARGET_CFLAGS} -fpermissive" | 464 | export TARGET_CXXFLAGS = "${TARGET_CFLAGS} -fpermissive" |
463 | 465 | ||
464 | export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \ | 466 | export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \ |
467 | -L${STAGING_BASE_LIBDIR_NATIVE} \ | ||
465 | -Wl,-rpath-link,${STAGING_LIBDIR_NATIVE} \ | 468 | -Wl,-rpath-link,${STAGING_LIBDIR_NATIVE} \ |
466 | -Wl,-rpath,${STAGING_LIBDIR_NATIVE} -Wl,-O1" | 469 | -Wl,-rpath-link,${STAGING_BASE_LIBDIR_NATIVE} \ |
470 | -Wl,-rpath,${STAGING_LIBDIR_NATIVE} \ | ||
471 | -Wl,-rpath,${STAGING_BASE_LIBDIR_NATIVE} \ | ||
472 | -Wl,-O1" | ||
467 | 473 | ||
468 | BUILDSDK_LDFLAGS = "-L${STAGING_LIBDIR} \ | 474 | BUILDSDK_LDFLAGS = "-L${STAGING_LIBDIR} \ |
469 | -Wl,-rpath-link,${STAGING_LIBDIR} \ | 475 | -Wl,-rpath-link,${STAGING_LIBDIR} \ |