mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-01-29 15:44:03 +00:00
fix wrapper script for symlinks
The wrapper script placed around the target binaries when using the companion libraries does not work for symbolic links The wrapper scripts needs to follow the links before calling the actual binary Signed-off-by: Bart vdr. Meulen <bartvdrmeulen@gmail.com> ---
This commit is contained in:
parent
a183b3f8bc
commit
7c3dcb42dc
@ -1,7 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
dirname="$(dirname "${0}")"
|
||||
basename="$(basename "${0}")"
|
||||
canonicalizedname=$(readlink -nm "${0}")
|
||||
dirname="$(dirname "${canonicalizedname}")"
|
||||
basename="$(basename "${canonicalizedname}")"
|
||||
|
||||
ld_lib_path="$(dirname "${dirname}")/lib"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user