Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 1 | Upstream-Status: Pending |
| 2 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 3 | |
| 4 | Index: gcc-4.9-20140316/libstdc++-v3/configure.host |
| 5 | =================================================================== |
| 6 | --- gcc-4.9-20140316.orig/libstdc++-v3/configure.host 2014-03-26 01:12:19.466008193 -0700 |
| 7 | +++ gcc-4.9-20140316/libstdc++-v3/configure.host 2014-03-26 01:43:48.222684357 -0700 |
| 8 | @@ -264,14 +264,24 @@ |
| 9 | os_include_dir="os/bsd/freebsd" |
| 10 | ;; |
| 11 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 12 | + # check for musl by target |
| 13 | + case "${host_os}" in |
| 14 | + *-musl*) |
| 15 | + os_include_dir="os/generic" |
| 16 | + ;; |
| 17 | + *) |
| 18 | if [ "$uclibc" = "yes" ]; then |
| 19 | os_include_dir="os/uclibc" |
| 20 | elif [ "$bionic" = "yes" ]; then |
| 21 | os_include_dir="os/bionic" |
| 22 | + elif [ "$musl" = "yes" ]; then |
| 23 | + os_include_dir="os/generic" |
| 24 | else |
| 25 | os_include_dir="os/gnu-linux" |
| 26 | fi |
| 27 | ;; |
| 28 | + esac |
| 29 | + ;; |
| 30 | hpux*) |
| 31 | os_include_dir="os/hpux" |
| 32 | ;; |