diff options
Diffstat (limited to 'academic/octave/patches/umfpack-cppflags.diff')
-rw-r--r-- | academic/octave/patches/umfpack-cppflags.diff | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/academic/octave/patches/umfpack-cppflags.diff b/academic/octave/patches/umfpack-cppflags.diff new file mode 100644 index 000000000000..d56ba1f8ebdf --- /dev/null +++ b/academic/octave/patches/umfpack-cppflags.diff @@ -0,0 +1,31 @@ +diff --git a/configure.ac b/configure.ac +--- a/configure.ac ++++ b/configure.ac +@@ -1512,7 +1512,9 @@ + + if test -n "$UMFPACK_LIBS"; then + ## SuiteSparse >= 4.0 needs additional link library for SuiteSparse_time() ++ save_CPPFLAGS="$CPPFLAGS" + save_LIBS="$LIBS"; ++ CPPFLAGS="$UMFPACK_CPPFLAGS $AMD_CPPFLAGS $CPPFLAGS" + LIBS="$UMFPACK_LIBS $AMD_LDFLAGS $AMD_LIBS $BLAS_LIBS $FLIBS $LIBS" + xtra_libs= + OCTAVE_UMFPACK_NEED_SUITESPARSE_TIME +@@ -1535,13 +1537,17 @@ + esac + fi + LIBS="$save_LIBS" ++ CPPFLAGS="$save_CPPFLAGS" + + ## Check for UMFPACK separately split complex matrix and RHS. + if test -n "$UMFPACK_LIBS"; then ++ save_CPPFLAGS="$CPPFLAGS" + save_LIBS="$LIBS"; ++ CPPFLAGS="$UMFPACK_CPPFLAGS $AMD_CPPFLAGS $CPPFLAGS" + LIBS="$UMFPACK_LIBS $CHOLMOD_LDFLAGS $CHOLMOD_LIBS $AMD_LDFLAGS $AMD_LIBS $COLAMD_LDFLAGS $COLAMD_LIBS $LAPACK_LIBS $BLAS_LIBS $FLIBS $LIBS $xtra_libs" + OCTAVE_UMFPACK_SEPARATE_SPLIT + LIBS="$save_LIBS" ++ CPPFLAGS="$save_CPPFLAGS" + fi + fi + |