Created
April 26, 2012 19:14
-
-
Save zchothia/2502173 to your computer and use it in GitHub Desktop.
openblas-0001-c_check-f_check-strip-quotes-from-detected-flags.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From ade1b8379ef0b2c24f67c216ce97a0666aee2aa8 Mon Sep 17 00:00:00 2001 | |
From: Zaheer Chothia <[email protected]> | |
Date: Thu, 26 Apr 2012 21:13:18 +0100 | |
Subject: [PATCH] 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 263efeb..6ce5e4c 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 f5bb5a7..93c39ec 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 ( | |
-- | |
1.7.10.msysgit.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment