diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2015-05-04 13:22:54 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2015-05-04 13:22:54 +0000 |
commit | 9bcd5519621a0168be0fccb549a24fa774a53e60 (patch) | |
tree | 7c4328bdc1c4c220764d2eeab015456ea04e1cb4 /tools/pkg-config | |
parent | a2bec91b3b66680ffc4517f3b585d1ffbbc688d0 (diff) | |
download | master-31e0f0ae-9bcd5519621a0168be0fccb549a24fa774a53e60.tar.gz master-31e0f0ae-9bcd5519621a0168be0fccb549a24fa774a53e60.tar.bz2 master-31e0f0ae-9bcd5519621a0168be0fccb549a24fa774a53e60.zip |
tools/pkg-config: fix compile on musl hosts
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 45605
Diffstat (limited to 'tools/pkg-config')
-rw-r--r-- | tools/pkg-config/patches/002-musl_host_fixup.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/pkg-config/patches/002-musl_host_fixup.patch b/tools/pkg-config/patches/002-musl_host_fixup.patch new file mode 100644 index 0000000000..d39a738339 --- /dev/null +++ b/tools/pkg-config/patches/002-musl_host_fixup.patch @@ -0,0 +1,24 @@ +--- a/glib/config.sub ++++ b/glib/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 +@@ -1354,7 +1354,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* \ |