mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-09 07:51:59 -09:00
package/swig: swig-wrapper.in: handle symlinks
Fixes https://autobuild.buildroot.net/results/e656684298b0462f8044667e7384c64d6508f22f/
Use realpath when constructing the path to the real swig so the wrapper
works even if it is called through a symlink (E.G. the swig<version>
symlinks).
Reported-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 2b3b25a7dc)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
This commit is contained in:
committed by
Thomas Perale
parent
b70b6a5ac4
commit
8dc1732b6f
@@ -5,4 +5,4 @@ if [ -z "${SWIG_LIB}" ]; then
|
||||
export SWIG_LIB="${0%/*}/../share/swig/@SWIG_VERSION@"
|
||||
fi
|
||||
|
||||
exec "${0}.br_real" "$@"
|
||||
exec "$(realpath "${0}").br_real" "$@"
|
||||
|
||||
Reference in New Issue
Block a user