Skip to content

Commit f150c97

Browse files
authored
Merge pull request #3641 from RajalakshmiSR/ppc_build
power10: Fix build issues due to perl scripts conversion
2 parents 28a24a4 + c98d63b commit f150c97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

c_check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ link=`$compiler_name $flags -c ctest2.c -o ctest2.o 2>&1 && $compiler_name $flag
304304
link=`echo "$link" | sed 's/\-Y[[:space:]]P\,/\-Y/g'`
305305

306306

307-
flags=`echo $link | tr '[[:space:]],\n' ' '`
307+
flags=`echo $link | tr "'[[:space:]],\n" " "`
308308

309309
# Strip trailing quotes
310310
old_flags="$flags"

f_check

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ else
8484
;;
8585
*GNU*|*GCC*)
8686

87-
v="${data##*GCC: *\) }"
87+
v="${data#*GCC: *\) }"
8888
v="${v%%\"*}"
8989

9090
major="${v%%.*}"
@@ -309,7 +309,7 @@ if [ -n "$link" ]; then
309309

310310
link=`echo "$link" | sed 's/\-rpath-link[[:space:]]+/\-rpath-link\%/g'`
311311

312-
flags=`echo "$link" | tr ',\n' ' '`
312+
flags=`echo "$link" | tr "',\n" " "`
313313
# remove leading and trailing quotes from each flag.
314314
#@flags = map {s/^['"]|['"]$//g; $_} @flags;
315315

0 commit comments

Comments
 (0)