Commits

Anonymous committed 9d73ff7

fix gfortran use

Comments (0)

Files changed (1)

 def options(ctx):
     ctx.load('compiler_c')
     ctx.load('compiler_cxx')
+    ctx.load('compiler_fc')
     
 def configure(ctx):
     ctx.load('compiler_c')
     ctx.load('compiler_cxx')
+
+    ctx.load('compiler_fc')
+    ctx.check_fortran()
+    ctx.check_fortran_verbose_flag()
+    ctx.check_fortran_clib()
     
 def build(ctx):
 
         includes= ['includes'],
         export_includes=['includes'],
         use     = ['herwig65',],
-        lib     = ['gfortran',],
+        lib     = ['gfortran','m',],
         install_path='${LIBDIR}',
+        cxxflags = ['-fPIC',],
         )
 
     inc_dir = ctx.path.find_node('includes')