tools/sed: fix compile on musl hosts
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 45603
This commit is contained in:
parent
a28deda590
commit
d0e8830c31
1 changed files with 24 additions and 0 deletions
24
tools/sed/patches/001-musl_host_fixup.patch
Normal file
24
tools/sed/patches/001-musl_host_fixup.patch
Normal file
|
@ -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* \
|
Loading…
Reference in a new issue