[petsc-users] .pc file does not include dependencies
Satish Balay
balay at mcs.anl.gov
Wed Nov 25 13:29:46 CST 2015
On Wed, 25 Nov 2015, Satish Balay wrote:
> I'll check why libs are listed as libfoo.a instead of -lfoo in this file.
Ok - the following patch should fix the issue. Could you try it out?
Thanks,
Satish
--------
$ git diff |cat
diff --git a/config/PETSc/Configure.py b/config/PETSc/Configure.py
index 2a83a71..885bb01 100644
--- a/config/PETSc/Configure.py
+++ b/config/PETSc/Configure.py
@@ -173,7 +173,7 @@ class Configure(config.base.Configure):
fd.write('Libs: '+plibs.replace(os.path.join(self.petscdir.dir,self.arch.arch),self.framework.argDB['prefix'])+'\n')
else:
fd.write('Libs: '+plibs+'\n')
- fd.write('Libs.private: '+' '.join(self.packagelibs+self.libraries.math+self.compilers.flibs+self.compilers.cxxlibs)+' '+self.compilers.LIBS)
+ fd.write('Libs.private: '+self.libraries.toStringNoDupes(self.packagelibs+self.libraries.math+self.compilers.flibs+self.compilers.cxxlibs)+' '+self.compilers.LIBS+'\n')
fd.close()
return
More information about the petsc-users
mailing list