summaryrefslogtreecommitdiffstats
path: root/tools/sed/patches/010-amd64_freebsd_build.patch
blob: c40cafb1f8c720fb28faea971a0b2f26a3aaf390 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/config/config.sub
+++ b/config/config.sub
@@ -380,6 +380,9 @@ case $basic_machine in
 	amd64)
 		basic_machine=x86_64-pc
 		;;
+	amd64-*)
+		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
+		;;
 	amdahl)
 		basic_machine=580-amdahl
 		os=-sysv