aboutsummaryrefslogtreecommitdiffstats
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
commit02d0ada4d2ae55b8220db12cfdc5a00d723c445f (patch)
tree87abba4ec88431cdef1f37ed190e3d7a07e4cf0a /tools/sed
parentd4404b42d8bdb793b45b8978f6e6a1abc649d2ae (diff)
downloadupstream-02d0ada4d2ae55b8220db12cfdc5a00d723c445f.tar.gz
upstream-02d0ada4d2ae55b8220db12cfdc5a00d723c445f.tar.bz2
upstream-02d0ada4d2ae55b8220db12cfdc5a00d723c445f.zip
[tools] sed: fix compilation on FreeBSD/AMD64
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22499 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 0000000000..c40cafb1f8
--- /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