Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | From df430b943a2df6b72054c808d4b93338a82562de Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Tue, 8 Dec 2015 08:23:34 +0000 |
| 4 | Subject: [PATCH 43/46] libstdc++: Support musl |
| 5 | |
| 6 | Upstream-Status: Pending |
| 7 | |
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 9 | --- |
| 10 | libstdc++-v3/configure.host | 10 ++++++++++ |
| 11 | 1 file changed, 10 insertions(+) |
| 12 | |
| 13 | diff --git a/libstdc++-v3/configure.host b/libstdc++-v3/configure.host |
| 14 | index 640199c..1756444 100644 |
| 15 | --- a/libstdc++-v3/configure.host |
| 16 | +++ b/libstdc++-v3/configure.host |
| 17 | @@ -274,14 +274,24 @@ case "${host_os}" in |
| 18 | os_include_dir="os/bsd/freebsd" |
| 19 | ;; |
| 20 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) |
| 21 | + # check for musl by target |
| 22 | + case "${host_os}" in |
| 23 | + *-musl*) |
| 24 | + os_include_dir="os/generic" |
| 25 | + ;; |
| 26 | + *) |
| 27 | if [ "$uclibc" = "yes" ]; then |
| 28 | os_include_dir="os/uclibc" |
| 29 | elif [ "$bionic" = "yes" ]; then |
| 30 | os_include_dir="os/bionic" |
| 31 | + elif [ "$musl" = "yes" ]; then |
| 32 | + os_include_dir="os/generic" |
| 33 | else |
| 34 | os_include_dir="os/gnu-linux" |
| 35 | fi |
| 36 | ;; |
| 37 | + esac |
| 38 | + ;; |
| 39 | hpux*) |
| 40 | os_include_dir="os/hpux" |
| 41 | ;; |
| 42 | -- |
| 43 | 2.6.3 |
| 44 | |