diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-5.3/0043-libstdc-Support-musl.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-5.3/0043-libstdc-Support-musl.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-5.3/0043-libstdc-Support-musl.patch b/meta/recipes-devtools/gcc/gcc-5.3/0043-libstdc-Support-musl.patch new file mode 100644 index 0000000000..bad8402ef8 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-5.3/0043-libstdc-Support-musl.patch | |||
@@ -0,0 +1,44 @@ | |||
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 | |||