chiark
/
gitweb
/
~mdw
/
mdw-cross
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a38fd09
)
src/mdw-cross.in: Add the cross-built libraries to the runtime search path.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 15 Nov 2019 17:12:27 +0000
(17:12 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 10 May 2020 18:35:19 +0000
(19:35 +0100)
Libtool sets the `RPATH' in binaries, but libraries linked using plain
`ld' don't by default, and then there is sadness.
src/cross.in
patch
|
blob
|
blame
|
history
diff --git
a/src/cross.in
b/src/cross.in
index 38d3136dcc550da81d4415621d6b8b127082df62..8953c529d43a19b7586ad0c9c43f3a7a44475ce8 100644
(file)
--- a/
src/cross.in
+++ b/
src/cross.in
@@
-65,4
+65,7
@@
case ${CROSS_COMPILER-guess},$found_gcc,$found_clang in
esac
export CROSS_COMPILER
esac
export CROSS_COMPILER
+LD_LIBRARY_PATH="$CROSS_PREFIX/lib${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}"
+export LD_LIBRARY_PATH
+
exec "$@"
exec "$@"