updated for f95 on ubuntu.
authorGengbin Zheng <gzheng@illinois.edu>
Wed, 24 Oct 2007 19:43:12 +0000 (19:43 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Wed, 24 Oct 2007 19:43:12 +0000 (19:43 +0000)
src/arch/common/conv-mach-gfortran.sh

index 8b561fb14a45ca030eefa153a55adc00f7189cbf..a5e1717628ee9281966ba4bf1cc985f95d3690f1 100644 (file)
@@ -28,7 +28,12 @@ then
   test `basename $F90DIR` = "$F90DIR" && F90DIR=`which gfortran 2> /dev/null`
 fi
 F90DIR="`dirname $F90DIR`"
+if test "$F90DIR" = '/usr/bin'
+then
+F90LIBDIR=/usr/lib
+else
 F90LIBDIR=`cd $F90DIR/../lib/gcc/ia64-unknown-linux-gnu/4.1.0; pwd`
+fi
 CMK_F90LIBS="-L$F90LIBDIR -lgfortran -lgcc_eh"
 
 CMK_MOD_NAME_ALLCAPS=