changeset 3477:6a36441bfafd

suitesparse.mk: Add -DLONGBLAS to CPPFLAGS for --enable-64 Windows builds.
author John W. Eaton <jwe@octave.org>
date Fri, 31 Jan 2014 11:53:56 -0500
parents f38cc7e463d5
children d641e31a27c7
files src/suitesparse.mk
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/suitesparse.mk	Fri Jan 31 11:49:45 2014 -0500
+++ b/src/suitesparse.mk	Fri Jan 31 11:53:56 2014 -0500
@@ -39,6 +39,14 @@
   RBio/Lib/librbio.a \
   UMFPACK/Lib/libumfpack.a
 
+$(PKG)_CPPFLAGS := -DNTIMER
+
+ifeq ($(MXE_WINDOWS_BUILD),yes)
+  ifeq ($(ENABLE_64),yes)
+    $(PKG)_CPPFLAGS += -DLONGBLAS='long long'
+  endif
+endif
+
 define $(PKG)_BUILD
     # exclude demos
     find '$(1)' -name 'Makefile' \
@@ -52,7 +60,7 @@
 
     # build all
     $(MAKE) -C '$(1)' -j '$(JOBS)' \
-        CPPFLAGS='-DNTIMER' \
+        CPPFLAGS="$($(PKG)_CPPFLAGS)" \
         CC='$(MXE_CC)' \
         CXX='$(MXE_CXX)' \
         CPLUSPLUS='$(MXE_CXX)' \