openwrtv3/tools/sed/patches/010-amd64_freebsd_build.patch
Jo-Philipp Wich f45be33f17 sed: fix compilation on FreeBSD/AMD64
SVN-Revision: 22499
2010-08-06 00:19:34 +00:00

12 lines
266 B
Diff

--- 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