From 1d72b8bf1be826652a6161ec608964f892a3e0fa Mon Sep 17 00:00:00 2001 From: Zhang Xianyi Date: Fri, 21 Sep 2012 11:49:07 +0000 Subject: [PATCH] Fixed generating shared library bug on MIPS. --- f_check | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/f_check b/f_check index 8e3855b10..83587e609 100644 --- a/f_check +++ b/f_check @@ -211,6 +211,10 @@ if (!$?) { if ($?) { $link = `$compiler $openmp -q32 -v ftest2.f 2>&1 && rm -f a.out a.exe`; } + #For gfortran MIPS + if ($?) { + $link = `$compiler $openmp -mabi=n32 -v ftest2.f 2>&1 && rm -f a.out a.exe`; + } $binary = "" if ($?); } @@ -219,6 +223,10 @@ if (!$?) { if ($?) { $link = `$compiler $openmp -q64 -v ftest2.f 2>&1 && rm -f a.out a.exe`; } + #For gfortran MIPS + if ($?) { + $link = `$compiler $openmp -mabi=64 -v ftest2.f 2>&1 && rm -f a.out a.exe`; + } $binary = "" if ($?); }