uboot-ar71xx: fix gcc 5.2 compile errors
[openwrt.git] / toolchain / gcc / patches / 4.9-linaro / 209-musl_libstdc++.patch
1 --- a/libstdc++-v3/configure.host
2 +++ b/libstdc++-v3/configure.host
3 @@ -263,6 +263,13 @@ case "${host_os}" in
4      os_include_dir="os/bsd/freebsd"
5      ;;
6    gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
7 +    # check for musl by target
8 +    case "${host_os}" in
9 +      *-musl*)
10 +        os_include_dir="os/generic"
11 +        ;;
12 +      *)
13 +
14      if [ "$uclibc" = "yes" ]; then
15        os_include_dir="os/uclibc"
16      elif [ "$bionic" = "yes" ]; then
17 @@ -271,6 +278,9 @@ case "${host_os}" in
18        os_include_dir="os/gnu-linux"
19      fi
20      ;;
21 +
22 +    esac
23 +    ;;
24    hpux*)
25      os_include_dir="os/hpux"
26      ;;