diff options
author | Robert Schuster <thebohemian@gmx.net> | 2008-08-27 15:37:07 +0000 |
---|---|---|
committer | Robert Schuster <thebohemian@gmx.net> | 2008-08-27 15:37:07 +0000 |
commit | 7a527a494ce316a373361024b9e86a779e4a49e8 (patch) | |
tree | 34afc56d5611f3cdb6cbd04211a076a488f9ac27 | |
parent | 72ee70604b162b8097ffa1fdc7ddd5945c69452a (diff) |
scratcbox-compat.bbclass: New bbclass.
-rw-r--r-- | 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 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" +} |