Browse Source

Merge pull request #3641 from RajalakshmiSR/ppc_build

power10:  Fix build issues due to perl scripts conversion
tags/v0.3.21
Martin Kroeker GitHub 3 years ago
parent
commit
f150c97ceb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      c_check
  2. +2
    -2
      f_check

+ 1
- 1
c_check View File

@@ -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"


+ 2
- 2
f_check View File

@@ -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…
Cancel
Save