Refs #99. c_check/f_check: strip quotes from detected flags

This commit is contained in:
Zaheer Chothia 2012-04-26 21:13:18 +01:00 committed by Zhang Xianyi
parent 006200c9a4
commit c8a5d4b86f
2 changed files with 4 additions and 0 deletions

View File

@ -174,6 +174,8 @@ $linker_a = "";
$link =~ s/\-Y\sP\,/\-Y/g;
@flags = split(/[\s\,\n]/, $link);
# remove leading and trailing quotes from each flag.
@flags = map {s/^['"]|['"]$//g; $_} @flags;
foreach $flags (@flags) {
if (

View File

@ -237,6 +237,8 @@ if ($link ne "") {
$link =~ s/\-rpath\s+/\-rpath\@/g;
@flags = split(/[\s\,\n]/, $link);
# remove leading and trailing quotes from each flag.
@flags = map {s/^['"]|['"]$//g; $_} @flags;
foreach $flags (@flags) {
if (