Skip to content

Commit

Permalink
Fixed generating shared library bug on MIPS.
Browse files Browse the repository at this point in the history
  • Loading branch information
xianyi committed Sep 21, 2012
1 parent 758e34e commit 1d72b8b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions f_check
Original file line number Diff line number Diff line change
Expand Up @@ -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 ($?);
}

Expand All @@ -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 ($?);
}

Expand Down

0 comments on commit 1d72b8b

Please sign in to comment.