[cig-commits] commit: Handle the case where PACKAGES_LIBS is not defined by Petsc
Mercurial
hg at geodynamics.org
Thu Mar 15 12:54:01 PDT 2012
changeset: 157:f26de398b7f5
tag: tip
user: Walter Landry <wlandry at caltech.edu>
date: Thu Mar 15 12:53:49 2012 -0700
files: packages/PETSc.py
description:
Handle the case where PACKAGES_LIBS is not defined by Petsc
diff -r 6807b751b5ee -r f26de398b7f5 packages/PETSc.py
--- a/packages/PETSc.py Mon Dec 19 02:50:49 2011 -0800
+++ b/packages/PETSc.py Thu Mar 15 12:53:49 2012 -0700
@@ -96,7 +96,9 @@ class PETSc(Package):
from distutils import sysconfig
vars = {}
sysconfig.parse_makefile(petscconf, vars)
- flags = sysconfig.expand_makefile_vars(vars['PACKAGES_LIBS'], vars)
+ flags = ''
+ if 'PACKAGES_LIBS' in vars:
+ flags = sysconfig.expand_makefile_vars(vars['PACKAGES_LIBS'], vars)
# Static libs? i.e. no shared libs. Must also do this if we are
# linking static libraries.
More information about the CIG-COMMITS
mailing list