summaryrefslogtreecommitdiff
path: root/libstdc++-v3/configure.host
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/configure.host')
-rw-r--r--libstdc++-v3/configure.host7
1 files changed, 7 insertions, 0 deletions
diff --git a/libstdc++-v3/configure.host b/libstdc++-v3/configure.host
index 48397fde071..e6249e656c8 100644
--- a/libstdc++-v3/configure.host
+++ b/libstdc++-v3/configure.host
@@ -172,6 +172,13 @@ case "${host_os}" in
cygwin*)
os_include_dir="os/newlib"
;;
+ darwin*)
+ # On Darwin, performance is improved if libstdc++ is single-module.
+ # Up to at least 10.3.5, -flat_namespace is required for proper
+ # treatment of coalesced symbols.
+ OPT_LDFLAGS="${OPT_LDFLAGS} -Wl,-single_module -Wl,-flat_namespace"
+ os_include_dir="os/generic"
+ ;;
*djgpp*) # leading * picks up "msdosdjgpp"
os_include_dir="os/djgpp"
;;