summarylogtreecommitdiffstats
path: root/flags.patch
blob: 301e5e65fad9594af9dd3ce95560fd4798d88e84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff -ruN SuiteSparse-5.10.1.orig/Mongoose/CMakeLists.txt SuiteSparse-5.10.1/Mongoose/CMakeLists.txt
--- SuiteSparse-5.10.1.orig/Mongoose/CMakeLists.txt	2021-05-18 17:31:16.000000000 +0430
+++ SuiteSparse-5.10.1/Mongoose/CMakeLists.txt	2021-10-15 13:18:15.322991534 +0330
@@ -328,7 +328,7 @@
     SET(CMAKE_EXE_LINKER_FLAGS_DEBUG "--coverage -g")
 elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
     # using GCC
-    SET(CMAKE_CXX_FLAGS "-O3 -fwrapv")
+    SET(CMAKE_CXX_FLAGS "-m32 -O3 -fwrapv")
     # Debug flags for GCC
     if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.6")
         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
diff -ruN SuiteSparse-5.10.1.orig/SuiteSparse_config/SuiteSparse_config.mk SuiteSparse-5.10.1/SuiteSparse_config/SuiteSparse_config.mk
--- SuiteSparse-5.10.1.orig/SuiteSparse_config/SuiteSparse_config.mk	2021-05-18 17:31:16.000000000 +0430
+++ SuiteSparse-5.10.1/SuiteSparse_config/SuiteSparse_config.mk	2021-10-15 13:20:25.381535826 +0330
@@ -146,7 +146,7 @@
         endif
     endif
 
-    CMAKE_OPTIONS += -DCMAKE_CXX_COMPILER=$(CXX) -DCMAKE_C_COMPILER=$(CC)
+    CMAKE_OPTIONS += -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_C_COMPILER=gcc -DCMAKE_C_FLAGS=-m32
 
     #---------------------------------------------------------------------------
     # CFLAGS for the C/C++ compiler
@@ -224,8 +224,8 @@
     #---------------------------------------------------------------------------
 
     # CUDA is detected automatically, and used if found.  To disable CUDA,
-    # use CUDA=no
-    CUDA = auto
+    CUDA=no
+    # CUDA = auto
 
     ifneq ($(CUDA),no)
         CUDA_PATH = $(shell which nvcc 2>/dev/null | sed "s/\/bin\/nvcc//")