From e47f646cb342f4351c92ff36a90233e015a827f5 Mon Sep 17 00:00:00 2001 From: Charles Pigott Date: Wed, 11 Apr 2018 21:50:23 +0100 Subject: [PATCH] Fix e61435774b: Some systems don't have realpath (#6705) --- config.lib | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config.lib b/config.lib index 7501658811..81a68b1d4b 100644 --- a/config.lib +++ b/config.lib @@ -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"