File: cxxflags.patch

package info (click to toggle)
stockfish 9-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 724 kB
  • sloc: cpp: 7,179; makefile: 467; sh: 172
file content (26 lines) | stat: -rw-r--r-- 727 bytes parent folder | download | duplicates (2)
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
@@ -159,9 +159,6 @@ ifeq ($(COMP),gcc)
 			CXXFLAGS += -m$(bits)
 			LDFLAGS += -m$(bits)
 		endif
-	else
-		CXXFLAGS += -m$(bits)
-		LDFLAGS += -m$(bits)
 	endif
 
 	ifneq ($(KERNEL),Darwin)