Skip to content

Instantly share code, notes, and snippets.

@zchothia
Created April 26, 2012 19:14
Show Gist options
  • Save zchothia/2502173 to your computer and use it in GitHub Desktop.
Save zchothia/2502173 to your computer and use it in GitHub Desktop.
openblas-0001-c_check-f_check-strip-quotes-from-detected-flags.patch
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