aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-01 21:46:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-01 21:48:28 +0000
commit0efea5da8599bf63f6cba806a7cceb26b49e017b (patch)
treee31b6cd6bcd8d2017f905b1f3f6b19b81b12f5e9
parent6082f3004cbb888887c30ff3991161317c1161ca (diff)
downloadmeta-darwin-0efea5da8599bf63f6cba806a7cceb26b49e017b.tar.gz
meta-darwin-0efea5da8599bf63f6cba806a7cceb26b49e017b.tar.bz2
meta-darwin-0efea5da8599bf63f6cba806a7cceb26b49e017b.zip
i386-darwin: Enable rpath usage
It makes sense to enable rpath usage on darwin, given the way we install the toolchain. To do this, we need to set an OSX minimum version of 10.5 but this isn't an issue for any targets I'm aware of that are in use. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--conf/machine-sdk/i386-darwin.conf6
1 files changed, 5 insertions, 1 deletions
diff --git a/conf/machine-sdk/i386-darwin.conf b/conf/machine-sdk/i386-darwin.conf
index d25b8d2..313b1a3 100644
--- a/conf/machine-sdk/i386-darwin.conf
+++ b/conf/machine-sdk/i386-darwin.conf
@@ -16,9 +16,13 @@ SDK_PACKAGING_FUNC = "do_compile"
SDKPKGSUFFIX = "nativesdk-darwin"
+BUILDSDK_CFLAGS += "-mmacosx-version-min=10.5"
+
# Remove -rpath and -rpath-link
BUILDSDK_LDFLAGS = "-L${STAGING_LIBDIR} \
- -L${STAGING_DIR_HOST}${base_libdir}"
+ -Wl,-rpath,${libdir} \
+ -L${STAGING_DIR_HOST}${base_libdir} \
+ -Wl,-rpath,${base_libdir}"
SDKUSE_NLS = "no"