Fix e61435774b: Some systems don't have realpath (#6705)

This commit is contained in:
Charles Pigott 2018-04-11 21:50:23 +01:00 committed by glx22
parent 17bd580630
commit e47f646cb3
1 changed files with 6 additions and 1 deletions

View File

@ -1210,7 +1210,12 @@ make_compiler_cflags() {
# $4 - name of the ldflags variable
# $5 - name of the features variable
compiler="`realpath \`which $1\``" # resolve symlinks
# Resolve symlinks, if your OS even does them
if [ "$os" = "MINGW" ] || [ "$os" = "CYGWIN" ] || [ "$os" = "DOS" ]; then
compiler="$1"
else
compiler="`realpath \`which $1\``"
fi
eval eval "flags=\\\$$2"
eval eval "cxxflags=\\\$$3"