[oe-commits] : scratcbox-compat.bbclass: New bbclass.

OE GIT Trial gittrial at amethyst.openembedded.net
Thu Aug 28 13:36:00 UTC 2008


Module: OE.dev
Branch: master
Commit: 6cdb826968b4fb74f195f32f3e18c115986ceb9d
URL:    http://gitweb.openembedded.net//OE.dev.git/?a=commit;h=6cdb826968b4fb74f195f32f3e18c115986ceb9d

Author:  <thebohemian at openembedded.org>
Date:   Wed Aug 27 15:37:07 2008 +0000

scratcbox-compat.bbclass: New bbclass.

---

 classes/scratchbox-compat.bbclass |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/classes/scratchbox-compat.bbclass b/classes/scratchbox-compat.bbclass
new file mode 100644
index 0000000..6cf92bd
--- /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"
+}





More information about the Openembedded-commits mailing list