Commits

BarryFSmith  committed 05f5846

remove visibility flag that is passed to MPICH since it cannot handle it

Hg-commit: 2e30c021e2d79d86f1c4b7d103dd79ee189f42d0

  • Participants
  • Parent commits 71c6260

Comments (0)

Files changed (1)

File config/packages/MPI.py

     args = ['--prefix='+installDir]
     compiler = self.getCompiler()
     args.append('CC="'+self.getCompiler()+'"')
-    args.append('CFLAGS="'+self.getCompilerFlags()+'"')
+    args.append('CFLAGS="'+self.getCompilerFlags().replace('-fvisibility=hidden','')+'"')
     self.popLanguage()
     if hasattr(self.compilers, 'CXX'):
       self.pushLanguage('Cxx')
       args.append('CXX="'+self.getCompiler()+'"')
-      args.append('CXXFLAGS="'+self.getCompilerFlags()+'"')
+      args.append('CXXFLAGS="'+self.getCompilerFlags().replace('-fvisibility=hidden','')+'"')
       self.popLanguage()
     else:
       args.append('--disable-cxx')