1. petsc
  2. PETSc
  3. buildsystem-3.3

Commits

Satish Balay  committed 1e6f484

#115674 self.setCompilers.LIBS was set to clibs only when FC was enabled. [This should also be set for FC=0 CXX=yes]

  • Participants
  • Parent commits 3bb3b8a
  • Branches default

Comments (0)

Files changed (1)

File config/compilers.py

View file
  • Ignore whitespace
 
     self.logPrint('Libraries needed to link C code with another linker: '+str(self.clibs), 3, 'compilers')
 
-    if hasattr(self.setCompilers, 'FC'):
+    if hasattr(self.setCompilers, 'FC') or hasattr(self.setCompilers, 'CXX'):
       self.logPrint('Check that C libraries can be used from Fortran', 4, 'compilers')
       oldLibs = self.setCompilers.LIBS
       self.setCompilers.LIBS = ' '.join([self.libraries.getLibArgument(lib) for lib in self.clibs])+' '+self.setCompilers.LIBS
+    if hasattr(self.setCompilers, 'FC'):
       try:
         self.setCompilers.checkCompiler('FC')
       except RuntimeError, e: