Skip to content

Commit 1d72b8b

Browse files
committed
Fixed generating shared library bug on MIPS.
1 parent 758e34e commit 1d72b8b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

f_check

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ if (!$?) {
211211
if ($?) {
212212
$link = `$compiler $openmp -q32 -v ftest2.f 2>&1 && rm -f a.out a.exe`;
213213
}
214+
#For gfortran MIPS
215+
if ($?) {
216+
$link = `$compiler $openmp -mabi=n32 -v ftest2.f 2>&1 && rm -f a.out a.exe`;
217+
}
214218
$binary = "" if ($?);
215219
}
216220

@@ -219,6 +223,10 @@ if (!$?) {
219223
if ($?) {
220224
$link = `$compiler $openmp -q64 -v ftest2.f 2>&1 && rm -f a.out a.exe`;
221225
}
226+
#For gfortran MIPS
227+
if ($?) {
228+
$link = `$compiler $openmp -mabi=64 -v ftest2.f 2>&1 && rm -f a.out a.exe`;
229+
}
222230
$binary = "" if ($?);
223231
}
224232

0 commit comments

Comments
 (0)