summaryrefslogtreecommitdiff
path: root/classes/scratchbox-compat.bbclass
blob: 6cf92bde5d9974b980d0c02601521c0a2eb60338 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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"
}