File: 07-drop-cpu-specific-code.patch

package info (click to toggle)
crafty 23.4-10
  • links: PTS, VCS
  • area: non-free
  • in suites: sid
  • size: 3,296 kB
  • sloc: ansic: 30,650; cpp: 5,829; makefile: 890; sh: 46; perl: 30
file content (23 lines) | stat: -rw-r--r-- 949 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Santiago Vila <sanvila@debian.org>
Subject: Do not generate CPU specific code, it may not work on every Debian supported machine

--- a/Makefile
+++ b/Makefile
@@ -143,7 +143,7 @@
 linux-amd64-profile:
 	$(MAKE) target=LINUX \
 		CC=gcc CXX=g++ \
-                CFLAGS='-Wall -pipe -fprofile-arcs -fomit-frame-pointer -O3 -march=k8' \
+                CFLAGS='-Wall -pipe -fprofile-arcs -fomit-frame-pointer -O3' \
 		CXFLAGS='' \
 		LDFLAGS='$(LDFLAGS) -lpthread -lnuma -fprofile-arcs -lstdc++' \
 		opt='$(opt) -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA' \
@@ -152,7 +152,7 @@
 linux-amd64:
 	$(MAKE) target=LINUX \
 		CC=gcc CXX=g++ \
-                CFLAGS='-Wall -pipe -fbranch-probabilities -fomit-frame-pointer -O3 -march=k8' \
+                CFLAGS='-Wall -pipe -fbranch-probabilities -fomit-frame-pointer -O3' \
 		CXFLAGS='' \
 		LDFLAGS='$(LDFLAGS) -lpthread -lnuma -lstdc++' \
 		opt='$(opt) -DINLINE64 -DCPUS=8 -DNUMA -DLIBNUMA' \