Commits

Jed Brown committed 5346369

exodusii.py: allow missing Fortran libraries when compiling with Fortran

Some distributions and users do not install libexoIIfor.a, and PETSc
does not need it, so fall back to linking only the C interface.

  • Participants
  • Parent commits a518c7d

Comments (0)

Files changed (1)

config/BuildSystem/config/packages/exodusii.py

   def configureLibrary(self):
     self.liblist = [['libexodus.a'], ['libexoIIv2c.a']]
     if hasattr(self.compilers, 'FC'):
-      self.liblist = [['libexoIIv2for.a'] + libs for libs in self.liblist]
-      self.functions.append(self.compilers.mangleFortranFunction('exclos'))
+      self.liblist = [['libexoIIv2for.a'] + libs for libs in self.liblist] + self.liblist
+      # We would like to only test for the Fortran function 'exclos_' when actually linking the
+      # Fortran interface, but that seems to require custom logic, so give up on testing until we
+      # have a better system.
+      #
+      # self.functions.append(self.compilers.mangleFortranFunction('exclos'))
     config.package.Package.configureLibrary(self)
 
   def Install(self):