[PATCH 0/1] MR4992: Correctly derive the target from CC if it's set to an absolute path.
Use `basename` to ensure that the target string does not contain any directory components. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56279 -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4992
From: Vibhav Pant <vibhavp(a)gmail.com> Use `basename` to ensure that the target string does not contain any directory components. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56279 --- configure | 4 ++-- configure.ac | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure index ca82387287a..b15c5a07c25 100755 --- a/configure +++ b/configure @@ -10657,8 +10657,8 @@ then : while test $# -ge 1 do case "$1" in - *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;; - *-clang) target=`expr "$1" : '\(.*\)-clang'` ;; + *-gcc) target=`expr "\`basename $1\`" : '\(.*\)-gcc'` ;; + *-clang) target=`expr "\`basename $1\`" : '\(.*\)-clang'` ;; esac shift done diff --git a/configure.ac b/configure.ac index 4bf9f76848e..6187854cbc9 100644 --- a/configure.ac +++ b/configure.ac @@ -882,8 +882,8 @@ do while test $# -ge 1 do case "$1" in - *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;; - *-clang) target=`expr "$1" : '\(.*\)-clang'` ;; + *-gcc) target=`expr "\`basename $1\`" : '\(.*\)-gcc'` ;; + *-clang) target=`expr "\`basename $1\`" : '\(.*\)-clang'` ;; esac shift done -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/4992
participants (2)
-
Vibhav Pant -
Vibhav “vibhavp” Pant