summaryrefslogtreecommitdiff
path: root/tools/sed
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-08-06 00:19:34 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-08-06 00:19:34 +0000
commitf45be33f1789c7e644046c3ba3bf4c995ae7f401 (patch)
tree9069098458fa41f6e2403e5e31f95780fdc24085 /tools/sed
parent187ec5ae199899719bd6ada4d7436847babafa9a (diff)
downloadmtk-20170518-f45be33f1789c7e644046c3ba3bf4c995ae7f401.zip
mtk-20170518-f45be33f1789c7e644046c3ba3bf4c995ae7f401.tar.gz
mtk-20170518-f45be33f1789c7e644046c3ba3bf4c995ae7f401.tar.bz2
sed: fix compilation on FreeBSD/AMD64
SVN-Revision: 22499
Diffstat (limited to 'tools/sed')
-rw-r--r--tools/sed/patches/010-amd64_freebsd_build.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/sed/patches/010-amd64_freebsd_build.patch b/tools/sed/patches/010-amd64_freebsd_build.patch
new file mode 100644
index 0000000..c40cafb
--- /dev/null
+++ b/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