diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2015-05-04 13:22:17 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2015-05-04 13:22:17 +0000 |
commit | 508899cdf26a0f6aa4977b08afea4fecbb991e2f (patch) | |
tree | 001970ef547662f94e7c5a28f49dc87182904e6a /tools | |
parent | 2569721374c2b0742611e428dacdc185485e38ab (diff) | |
download | master-187ad058-508899cdf26a0f6aa4977b08afea4fecbb991e2f.tar.gz master-187ad058-508899cdf26a0f6aa4977b08afea4fecbb991e2f.tar.bz2 master-187ad058-508899cdf26a0f6aa4977b08afea4fecbb991e2f.zip |
tools/sed: fix compile on musl hosts
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45603 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rw-r--r-- | tools/sed/patches/001-musl_host_fixup.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/sed/patches/001-musl_host_fixup.patch b/tools/sed/patches/001-musl_host_fixup.patch new file mode 100644 index 0000000000..4dcb1ec3c1 --- /dev/null +++ b/tools/sed/patches/001-musl_host_fixup.patch @@ -0,0 +1,24 @@ +--- a/build-aux/config.sub ++++ b/build-aux/config.sub +@@ -122,9 +122,9 @@ esac + # Here we must recognize all the valid KERNEL-OS combinations. + maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` + case $maybe_os in +- nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ +- linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ +- knetbsd*-gnu* | netbsd*-gnu* | \ ++ nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-musl* | \ ++ linux-newlib* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ ++ kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ + kopensolaris*-gnu* | \ + storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os +@@ -1360,7 +1360,7 @@ case $os in + | -chorusos* | -chorusrdb* | -cegcc* \ + | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -linux-android* \ +- | -linux-newlib* | -linux-uclibc* \ ++ | -linux-musl* | -linux-newlib* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |