mirror of
https://github.com/richfelker/musl-cross-make.git
synced 2025-04-21 08:24:58 +02:00
32 lines
844 B
Diff
32 lines
844 B
Diff
# HG changeset patch
|
|
# Parent ec1984833740e9cb3223001a8fa26c03b5dcc93c
|
|
Use the generic implementation of libstdc++ primitives when we're on musl, not the glibc one.
|
|
|
|
diff -r ec1984833740 libstdc++-v3/configure.host
|
|
--- a/libstdc++-v3/configure.host Thu Jan 29 13:38:28 2015 -0500
|
|
+++ b/libstdc++-v3/configure.host Thu Jan 29 13:41:38 2015 -0500
|
|
@@ -263,6 +263,13 @@
|
|
os_include_dir="os/bsd/freebsd"
|
|
;;
|
|
gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
|
|
+ # check for musl by target
|
|
+ case "${host_os}" in
|
|
+ *-musl*)
|
|
+ os_include_dir="os/generic"
|
|
+ ;;
|
|
+ *)
|
|
+
|
|
if [ "$uclibc" = "yes" ]; then
|
|
os_include_dir="os/uclibc"
|
|
elif [ "$bionic" = "yes" ]; then
|
|
@@ -271,6 +278,9 @@
|
|
os_include_dir="os/gnu-linux"
|
|
fi
|
|
;;
|
|
+
|
|
+ esac
|
|
+ ;;
|
|
hpux*)
|
|
os_include_dir="os/hpux"
|
|
;;
|