summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorJeremy Laine <jeremy.laine@m4x.org>2008-08-27 16:22:56 +0000
committerJeremy Laine <jeremy.laine@m4x.org>2008-08-27 16:22:56 +0000
commit5a60e8d2d9220e02966c8cf776b5c593831f345b (patch)
tree7169a07202027012eb5b1a77a2a91bfffefdbcb0 /classes
parentab3f80ebb0215321f9ce226ce54438492be8ab5e (diff)
parent4b0b97806315711698523175461283205eda3918 (diff)
merge of '0e9b0714e6ab764eaa6afb85fbd5d15b41175604'
and '45a9c4a970e79c5b8343a4a4ff110589bcc19d2f'
Diffstat (limited to 'classes')
-rw-r--r--classes/scratchbox-compat.bbclass13
1 files changed, 13 insertions, 0 deletions
diff --git a/classes/scratchbox-compat.bbclass b/classes/scratchbox-compat.bbclass
new file mode 100644
index 0000000000..6cf92bde5d
--- /dev/null
+++ b/classes/scratchbox-compat.bbclass
@@ -0,0 +1,13 @@
+# By adding this class to your build all binaries get the special rpath
+# "/scratchbox/host_shared/lib/:/scratchbox/tools/lib/"
+# Doing so makes libraries and programs runnable inside the Scratchbox
+# environment as native binaries (not for the CPU that Scratchbox is
+# emulating).
+
+do_configure_prepend () {
+ export LD_RUN_PATH="/scratchbox/host_shared/lib:/scratchbox/tools/lib"
+}
+
+do_compile_prepend () {
+ export LD_RUN_PATH="/scratchbox/host_shared/lib:/scratchbox/tools/lib"
+}