summaryrefslogtreecommitdiff
path: root/patches/gcc/2.95.3/backport-config.gcc-1.92.patch
blob: fc55681d5134f4ed7ed4b741eb2d2c77d63d26fc (plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
# Taken from http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config.gcc.diff?r1=1.91&r2=1.92
# Should fix error
#   Configuration x86_64-host_unknown-linux-gnu not supported
# when configuring gcc-2.95 on x86_64 build for i686 target
# It's a bit silly, since tm_file refers to files that don't exist,
# but as long as x86_64 is just the build machine, that doesn't matter.

--- gcc-2.95.3/gcc/configure.old	2004-03-24 12:17:44.000000000 -0800
+++ gcc-2.95.3/gcc/configure	2004-03-24 12:19:30.000000000 -0800
@@ -2929,6 +2929,9 @@
 	i[34567]86-*-*)
 		cpu_type=i386
 		;;
+	x86_64-*-*)
+		cpu_type=i386
+		;;
 	hppa*-*-*)
 		cpu_type=pa
 		;;
@@ -3643,6 +3646,19 @@
  			thread_file='posix'
  		fi
 		;;
+	x86_64-*-linux*)
+		xmake_file=x-linux
+		tm_file="i386/biarch64.h i386/i386.h i386/att.h linux.h i386/x86-64.h \
+			 i386/linux64.h"
+		tmake_file="t-slibgcc-elf-ver t-linux i386/t-crtstuff"
+		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
+		gnu_ld=yes
+		float_format=i386
+		if test x$enable_threads = xyes; then
+			thread_file='posix'
+		fi
+		;;
+
 	i[34567]86-*-gnu*)
 		float_format=i386
 		;;