From: Imre Kaloz Date: Mon, 4 May 2015 13:22:36 +0000 (+0000) Subject: tools/autoconf: fix compile on musl hosts X-Git-Tag: reboot~3138 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a2bec91b3b66680ffc4517f3b585d1ffbbc688d0;p=openwrt%2Fstaging%2Fpepe2k.git tools/autoconf: fix compile on musl hosts Signed-off-by: Imre Kaloz SVN-Revision: 45604 --- diff --git a/tools/autoconf/patches/002-musl_host_fixup.patch b/tools/autoconf/patches/002-musl_host_fixup.patch new file mode 100644 index 0000000000..4dcb1ec3c1 --- /dev/null +++ b/tools/autoconf/patches/002-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* \