File: cxxflags.patch

package info (click to toggle)
stockfish 8-3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 684 kB
  • ctags: 1,402
  • sloc: cpp: 8,032; makefile: 449
file content (23 lines) | stat: -rw-r--r-- 583 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
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(-)

--- a/src/Makefile
+++ b/src/Makefile
@@ -156,8 +156,6 @@ ifeq ($(COMP),gcc)
 		ifeq ($(OS),Android)
 			CXXFLAGS += -m$(bits)
 		endif
-	else
-		CXXFLAGS += -m$(bits)
 	endif
 
 	ifneq ($(KERNEL),Darwin)