6643935b180ab34e92cd087fd1d1c48a6278c40f
[openwrt/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 @@ -264,6 +264,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 @@ -272,6 +279,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 ;;