Package: ruby-unf-ext / 0.0.7.2-3

0002-force-using-CXX-instead-of-CC.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Youhei SASAKI <uwabami@gfd-dennou.org>
Date: Wed, 13 Jun 2012 20:19:20 +0900
Subject: force using g++ instead of gcc

Signed-off-by: Youhei SASAKI <uwabami@gfd-dennou.org>
---
 ext/unf_ext/extconf.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ext/unf_ext/extconf.rb b/ext/unf_ext/extconf.rb
index 9068085..8b1c06b 100644
--- a/ext/unf_ext/extconf.rb
+++ b/ext/unf_ext/extconf.rb
@@ -10,9 +10,9 @@ create_makefile 'unf_ext'
 
 unless CONFIG['CXX']
   case CONFIG['CC']
-  when %r{((?:.*[-/])?)gcc([-0-9.]*)$}
+  when %r{((?:.*[-/])?)gcc([-0-9.]*)\s*?$}
     cxx = $1 + 'g++' + $2
-  when %r{((?:.*[-/])?)clang([-0-9.]*)$}
+  when %r{((?:.*[-/])?)clang([-0-9.]*)\s*?$}
     cxx = $1 + 'clang++' + $2
   else
     cxx = CONFIG['CC']