File: cxxflags.patch

package info (click to toggle)
stockfish 17-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 77,812 kB
  • sloc: cpp: 11,863; makefile: 931; python: 684; sh: 314; ansic: 239
file content (26 lines) | stat: -rw-r--r-- 748 bytes parent folder | download
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
Description: Don't add -m32/-m64 to CXXFLAGS
 Adding those is not only unnecessary, but actually breaks the build on
 many architectures, since g++ does not recognize them when built without
 multilib support.
Author: Sven Joachim <svenjoac@gmx.de>
Bug-Debian: https://bugs.debian.org/843922
Last-Update: 2016-11-11

---
 src/Makefile |    2 --
 1 file changed, 2 deletions(-)

Index: stockfish/src/Makefile
===================================================================
--- stockfish.orig/src/Makefile
+++ stockfish/src/Makefile
@@ -445,9 +445,6 @@ ifeq ($(COMP),gcc)
 		endif
 	else ifeq ($(arch),loongarch64)
 		CXXFLAGS += -latomic
-	else
-		CXXFLAGS += -m$(bits)
-		LDFLAGS += -m$(bits)
 	endif
 
 	ifeq ($(arch),$(filter $(arch),armv7))