[petsc] 06/07: pass Debian build flags to petsc configure

Drew Parsons dparsons at moszumanska.debian.org
Thu Oct 1 18:32:30 UTC 2015


This is an automated email from the git hooks/post-receive script.

dparsons pushed a commit to branch master
in repository petsc.

commit afb6fb7837c91162da5c107e190048844d0e0b71
Author: Drew Parsons <dparsons at debian.org>
Date:   Fri Oct 2 01:38:48 2015 +0800

    pass Debian build flags to petsc configure
    
    Use quotes to pass Debian build flags (CFLAGS etc) to the PETSc
    configure script, otherwise some will go used because of the space
    separators.
---
 debian/rules | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/debian/rules b/debian/rules
index 7fe96a8..e3bb2dd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -111,17 +111,17 @@ override_dh_auto_configure:
           $(CONFIGURATION_OPTIONS)  \
           --prefix=$(PETSC_DIR_DEBUG_PREFIX)  \
           PETSC_DIR=$(CURDIR) --PETSC_ARCH=$(PETSC_DEBUG_BUILD_DIR) \
-            CFLAGS=$(CFLAGS) CXXFLAGS=$(CXXFLAGS) \
-            FCFLAGS=$(FCFLAGS)  FFLAGS=$(FFLAGS)  \
-            CPPFLAGS=$(CPPFLAGS) LDFLAGS=$(LDFLAGS) MAKEFLAGS=$(MAKEFLAGS)
+            CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
+            FCFLAGS="$(FCFLAGS)"  FFLAGS="$(FFLAGS)"  \
+            CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" MAKEFLAGS="$(MAKEFLAGS)"
 	dh_auto_configure -p$(PETSC_VERSIONED_DEV_PACKAGE) --  \
           --with-debugging=0  \
           $(CONFIGURATION_OPTIONS)  \
           --prefix=$(PETSC_DIR_PREFIX)  \
           PETSC_DIR=$(CURDIR) --PETSC_ARCH=$(PETSC_BUILD_DIR) \
-            CFLAGS=$(CFLAGS) CXXFLAGS=$(CXXFLAGS) \
-            FCFLAGS=$(FCFLAGS)  FFLAGS=$(FFLAGS)  \
-            CPPFLAGS=$(CPPFLAGS) LDFLAGS=$(LDFLAGS) MAKEFLAGS=$(MAKEFLAGS)
+            CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" \
+            FCFLAGS="$(FCFLAGS)"  FFLAGS="$(FFLAGS)"  \
+            CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" MAKEFLAGS="$(MAKEFLAGS)"
 
 
 override_dh_auto_build:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/petsc.git



More information about the debian-science-commits mailing list