Merge pull request #3641 from RajalakshmiSR/ppc_build
power10: Fix build issues due to perl scripts conversion
This commit is contained in:
commit
f150c97ceb
2
c_check
2
c_check
|
@ -304,7 +304,7 @@ link=`$compiler_name $flags -c ctest2.c -o ctest2.o 2>&1 && $compiler_name $flag
|
||||||
link=`echo "$link" | sed 's/\-Y[[:space:]]P\,/\-Y/g'`
|
link=`echo "$link" | sed 's/\-Y[[:space:]]P\,/\-Y/g'`
|
||||||
|
|
||||||
|
|
||||||
flags=`echo $link | tr '[[:space:]],\n' ' '`
|
flags=`echo $link | tr "'[[:space:]],\n" " "`
|
||||||
|
|
||||||
# Strip trailing quotes
|
# Strip trailing quotes
|
||||||
old_flags="$flags"
|
old_flags="$flags"
|
||||||
|
|
4
f_check
4
f_check
|
@ -84,7 +84,7 @@ else
|
||||||
;;
|
;;
|
||||||
*GNU*|*GCC*)
|
*GNU*|*GCC*)
|
||||||
|
|
||||||
v="${data##*GCC: *\) }"
|
v="${data#*GCC: *\) }"
|
||||||
v="${v%%\"*}"
|
v="${v%%\"*}"
|
||||||
|
|
||||||
major="${v%%.*}"
|
major="${v%%.*}"
|
||||||
|
@ -309,7 +309,7 @@ if [ -n "$link" ]; then
|
||||||
|
|
||||||
link=`echo "$link" | sed 's/\-rpath-link[[:space:]]+/\-rpath-link\%/g'`
|
link=`echo "$link" | sed 's/\-rpath-link[[:space:]]+/\-rpath-link\%/g'`
|
||||||
|
|
||||||
flags=`echo "$link" | tr ',\n' ' '`
|
flags=`echo "$link" | tr "',\n" " "`
|
||||||
# remove leading and trailing quotes from each flag.
|
# remove leading and trailing quotes from each flag.
|
||||||
#@flags = map {s/^['"]|['"]$//g; $_} @flags;
|
#@flags = map {s/^['"]|['"]$//g; $_} @flags;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue