diff options
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 1d531f32edec..6e5e18021a3c 100644 --- a/configure.ac +++ b/configure.ac @@ -7205,7 +7205,7 @@ if test "$COM_IS_CLANG" = "TRUE"; then dnl The prefix where Clang resides, override to where Clang resides if dnl using a source build: if test -z "$CLANGDIR"; then - CLANGDIR=$(dirname $(dirname $($CXX -print-prog-name=$(basename $CXX)))) + CLANGDIR=$(dirname $(dirname $($CXX -print-prog-name=$(basename $(printf '%s\n' $CXX | head -n 1))))) fi # Assume Clang is self-built, but allow overriding COMPILER_PLUGINS_CXX to the compiler Clang was built with. if test -z "$COMPILER_PLUGINS_CXX"; then |