File: build.patch

package info (click to toggle)
freespace2 3.7.0%2Brepack-2
  • links: PTS, VCS
  • area: non-free
  • in suites: jessie, jessie-kfreebsd
  • size: 22,848 kB
  • ctags: 41,897
  • sloc: cpp: 369,931; makefile: 1,060; xml: 129; sh: 112
file content (19 lines) | stat: -rw-r--r-- 535 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Last-Update: 2014-10-29
Forwarded: no
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: fix FTBFS on amd64.
 "CPU you selected does not support x86-64 instruction set"

--- a/configure.ac
+++ b/configure.ac
@@ -115,9 +115,9 @@
 	x86_64-*-linux*)
 		# linux
 		echo "Using 64-bit Unix defines (for $host_os)"
 		fs2_os_linux="yes"
-		D_CFLAGS="$D_CFLAGS -m64 -mtune=i686 -msse -msse2 -ansi"
+		D_CFLAGS="$D_CFLAGS -m64 -mtune=generic -msse -msse2 -ansi"
 		D_CFLAGS="$D_CFLAGS -DLUA_USE_LINUX"
 		;;
 	*-*-linux*)
 		# linux