浏览代码

sed: fix compilation on FreeBSD/AMD64

SVN-Revision: 22499
Jo-Philipp Wich 15 年之前
父节点
当前提交
f45be33f17
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      tools/sed/patches/010-amd64_freebsd_build.patch

+ 12 - 0
tools/sed/patches/010-amd64_freebsd_build.patch

@@ -0,0 +1,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