blob: bad8402ef8d84e688f6d654bbc13fc5233abced4 [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001From df430b943a2df6b72054c808d4b93338a82562de Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 8 Dec 2015 08:23:34 +0000
4Subject: [PATCH 43/46] libstdc++: Support musl
5
6Upstream-Status: Pending
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 libstdc++-v3/configure.host | 10 ++++++++++
11 1 file changed, 10 insertions(+)
12
13diff --git a/libstdc++-v3/configure.host b/libstdc++-v3/configure.host
14index 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--
432.6.3
44