From 93e595d5c89ebacdb8d1e6fcfe6f58fe2d30de28 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 23 Sep 2011 08:57:31 +0100 Subject: autotools.bbclass: Set the dynamic linker search path for libtool correctly libtool obtains the search path from /etc/ld.so.conf and hardcodes /usr/lib and /lib. This results in host contamination and variable sets of RPATH values ending up in binaries. By exporting the correct values for all autotools recipes we avoid this. Signed-off-by: Richard Purdie --- meta/classes/native.bbclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/classes/native.bbclass') diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index 9a41f19dc..5e45aed37 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass @@ -69,6 +69,9 @@ exec_prefix = "${STAGING_DIR_NATIVE}${prefix_native}" libdir = "${STAGING_DIR_NATIVE}${libdir_native}" +# Libtool's default paths are correct for the native machine +lt_cv_sys_lib_dlsearch_path_spec[unexport] = "1" + NATIVE_PACKAGE_PATH_SUFFIX = "" bindir .= "${NATIVE_PACKAGE_PATH_SUFFIX}" libdir .= "${NATIVE_PACKAGE_PATH_SUFFIX}" -- cgit v1.2.3