From c8a5d4b86fa0af789eed58b034aec3442b868788 Mon Sep 17 00:00:00 2001 From: Zaheer Chothia Date: Thu, 26 Apr 2012 21:13:18 +0100 Subject: [PATCH] Refs #99. c_check/f_check: strip quotes from detected flags --- c_check | 2 ++ f_check | 2 ++ 2 files changed, 4 insertions(+) diff --git a/c_check b/c_check index 263efeb3d..6ce5e4cc0 100644 --- a/c_check +++ b/c_check @@ -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 ( diff --git a/f_check b/f_check index f5bb5a7f6..93c39ec88 100644 --- a/f_check +++ b/f_check @@ -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 (