From: Mark Wooding Date: Fri, 15 Nov 2019 17:12:27 +0000 (+0000) Subject: src/mdw-cross.in: Add the cross-built libraries to the runtime search path. X-Git-Url: https://git.distorted.org.uk/~mdw/mdw-cross/commitdiff_plain/a5a10b252abe51b8bcf8d3c1659cb03a112c161d src/mdw-cross.in: Add the cross-built libraries to the runtime search path. Libtool sets the `RPATH' in binaries, but libraries linked using plain `ld' don't by default, and then there is sadness. --- diff --git a/src/cross.in b/src/cross.in index 38d3136..8953c52 100644 --- 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 +LD_LIBRARY_PATH="$CROSS_PREFIX/lib${LD_LIBRARY_PATH+:$LD_LIBRARY_PATH}" +export LD_LIBRARY_PATH + exec "$@"