diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-17 17:15:03 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-22 15:56:15 +0000 |
commit | 244141ef8cb01728cecf50b2d2702dbe0573ab0d (patch) | |
tree | f120abee1485200b498380e818e396577dab2413 | |
parent | 3de2b59db530045bfd17b5f4232241c0c7405f40 (diff) | |
download | poky-244141ef8cb01728cecf50b2d2702dbe0573ab0d.tar.gz |
buildtools-tarball: Add an ld.so.conf for nativesdk-binutils
We need to search our own libdirs, then fall back to the system ones as our
customised dynamic loader will. Have ld.so.conf reflect that.
This ensures that binutils finds libraries here when linking too.
(From OE-Core rev: 15049c610bcfd0a3e161379651b5ea117ea02715)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/meta/buildtools-tarball.bb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-core/meta/buildtools-tarball.bb b/meta/recipes-core/meta/buildtools-tarball.bb index 9c5c2cc8d6..95ebda7fa1 100644 --- a/meta/recipes-core/meta/buildtools-tarball.bb +++ b/meta/recipes-core/meta/buildtools-tarball.bb | |||
@@ -74,6 +74,10 @@ create_sdk_files_append () { | |||
74 | echo 'export GIT_SSL_CAINFO="${SDKPATHNATIVE}${sysconfdir}/ssl/certs/ca-certificates.crt"' >>$script | 74 | echo 'export GIT_SSL_CAINFO="${SDKPATHNATIVE}${sysconfdir}/ssl/certs/ca-certificates.crt"' >>$script |
75 | echo 'export OPENSSL_CONF="${SDKPATHNATIVE}${sysconfdir}/ssl/openssl.cnf"' >>$script | 75 | echo 'export OPENSSL_CONF="${SDKPATHNATIVE}${sysconfdir}/ssl/openssl.cnf"' >>$script |
76 | 76 | ||
77 | mkdir -p ${SDK_OUTPUT}/${SDKPATHNATIVE}${sysconfdir}/ | ||
78 | echo '${SDKPATHNATIVE}${libdir} | ||
79 | ${SDKPATHNATIVE}${base_libdir} | ||
80 | include /etc/ld.so.conf' > ${SDK_OUTPUT}/${SDKPATHNATIVE}${sysconfdir}/ld.so.conf | ||
77 | if [ "${SDKMACHINE}" = "i686" ]; then | 81 | if [ "${SDKMACHINE}" = "i686" ]; then |
78 | echo 'export NO32LIBS="0"' >>$script | 82 | echo 'export NO32LIBS="0"' >>$script |
79 | echo 'echo "$BB_ENV_EXTRAWHITE" | grep -q "NO32LIBS"' >>$script | 83 | echo 'echo "$BB_ENV_EXTRAWHITE" | grep -q "NO32LIBS"' >>$script |