summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--c_check2
-rw-r--r--f_check2
2 files changed, 4 insertions, 0 deletions
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 (