mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +00:00
This commit is contained in:
parent
192770e6da
commit
6ac079020b
10
config.lib
10
config.lib
@ -1202,6 +1202,10 @@ check_params() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ! which realpath; then
|
||||||
|
realpath() { readlink -f -- "$@"; }
|
||||||
|
fi
|
||||||
|
|
||||||
make_compiler_cflags() {
|
make_compiler_cflags() {
|
||||||
# Params:
|
# Params:
|
||||||
# $1 - compiler
|
# $1 - compiler
|
||||||
@ -1211,11 +1215,7 @@ make_compiler_cflags() {
|
|||||||
# $5 - name of the features variable
|
# $5 - name of the features variable
|
||||||
|
|
||||||
# Resolve symlinks, if your OS even does them
|
# Resolve symlinks, if your OS even does them
|
||||||
if [ "$os" = "MINGW" ] || [ "$os" = "CYGWIN" ] || [ "$os" = "DOS" ]; then
|
compiler="`realpath \`which $1\``"
|
||||||
compiler="$1"
|
|
||||||
else
|
|
||||||
compiler="`realpath \`which $1\``"
|
|
||||||
fi
|
|
||||||
|
|
||||||
eval eval "flags=\\\$$2"
|
eval eval "flags=\\\$$2"
|
||||||
eval eval "cxxflags=\\\$$3"
|
eval eval "cxxflags=\\\$$3"
|
||||||
|
Loading…
Reference in New Issue
Block a user