Fixed a bug about detecting underscore prefix in c_check.
authorXianyi Zhang <traits.zhang@gmail.com>
Fri, 27 May 2011 10:16:19 +0000 (18:16 +0800)
committerXianyi Zhang <traits.zhang@gmail.com>
Fri, 27 May 2011 10:16:19 +0000 (18:16 +0800)
Changelog.txt
c_check

index cd1b4c3..4610582 100644 (file)
@@ -17,6 +17,7 @@ common:
        * Fixed issue #23. Fixed a bug of f_check script about generating link flags.
        * Added openblas_set_num_threads for Fortran.
        * Fixed #25 a wrong result of rotmg.
+       * Fixed a bug about detecting underscore prefix in c_check.
 
 x86/x86_64:
        * Fixed #28 a wrong result of dsdot on x86_64.
diff --git a/c_check b/c_check
index d8025f9..263efeb 100644 (file)
--- a/c_check
+++ b/c_check
@@ -149,7 +149,7 @@ $binformat    = bin64  if ($data =~ /BINARY_64/);
 
 $data = `$compiler_name -S ctest1.c && grep globl ctest1.s | head -n 1 && rm -f ctest1.s`;
 
-$data =~ /globl\ ([_\.]*)(.*)/;
+$data =~ /globl\s([_\.]*)(.*)/;
 
 $need_fu      = $1;