[cig-commits] [commit] rajesh-petsc, rajesh-petsc-schur: correctly generate CPPFLAGS, LDFLAGS, LIBS for building with PETSc (23c90a7)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Wed Nov 5 19:03:16 PST 2014


Repository : https://github.com/geodynamics/citcoms

On branches: rajesh-petsc,rajesh-petsc-schur
Link       : https://github.com/geodynamics/citcoms/compare/464e1b32299b15819f93efd98d969cddb84dfe51...f97ae655a50bdbd6dac1923a3471ee4dae178fbd

>---------------------------------------------------------------

commit 23c90a718846823e34ce57607763b0f1d4489c7c
Author: Rajesh Kommu <rajesh.kommu at gmail.com>
Date:   Sat Aug 23 12:16:05 2014 -0700

    correctly generate CPPFLAGS, LDFLAGS, LIBS for building with PETSc


>---------------------------------------------------------------

23c90a718846823e34ce57607763b0f1d4489c7c
 configure.ac | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 6b3e9c7..c4a03a2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -81,7 +81,9 @@ AC_PROG_CXX([mpicxx mpic++ mpiCC hcp mpCC mpxlC mpxlC_r cmpic++ g++ c++ gpp aCC
 AC_CHECK_HEADERS([malloc.h])
 
 if test "$want_petsc" = yes; then
-  CIT_PATH_PETSC(3.5.1,[CPPFLAGS="-DUSE_PETSC $CPPFLAGS"],[AC_MSG_ERROR([PETSc Library not found])])
+  CIT_PATH_PETSC(3.5.1,[CPPFLAGS="-DUSE_PETSC -I$PETSC_DIR/include -I$PETSC_DIR/$PETSC_ARCH/include $CPPFLAGS"],[AC_MSG_ERROR([PETSc Library not found])])
+  LDFLAGS="-L$PETSC_DIR/$PETSC_ARCH/lib $LDFLAGS"
+  LIBS="-lpetsc $LIBS"
 fi
 
 if test "$want_pyre" = yes; then



More information about the CIG-COMMITS mailing list