summaryrefslogtreecommitdiff
path: root/libstdc++-v3/configure.host
diff options
context:
space:
mode:
authorgeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-13 22:48:14 +0000
committergeoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-13 22:48:14 +0000
commitc5da6357a144014d1a515c515da1ea44f21fe741 (patch)
tree24559ad438bbb0c347089c9089f62a1d2044f259 /libstdc++-v3/configure.host
parentbb40e9c65f21d8f1e70ce72b92d854f1d45b826f (diff)
downloadgcc-c5da6357a144014d1a515c515da1ea44f21fe741.tar.gz
* configure.host (darwin): On darwin8 or later, no need to build
libstdc++ with -flat_namespace. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93613 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/configure.host')
-rw-r--r--libstdc++-v3/configure.host10
1 files changed, 8 insertions, 2 deletions
diff --git a/libstdc++-v3/configure.host b/libstdc++-v3/configure.host
index 3557459426e..b3582a41d79 100644
--- a/libstdc++-v3/configure.host
+++ b/libstdc++-v3/configure.host
@@ -174,13 +174,19 @@ case "${host_os}" in
cygwin*)
os_include_dir="os/newlib"
;;
- darwin*)
+ darwin | darwin[1-7] | darwin[1-7].*)
# On Darwin, performance is improved if libstdc++ is single-module.
- # Up to at least 10.3.5, -flat_namespace is required for proper
+ # Up to at least 10.3.7, -flat_namespace is required for proper
# treatment of coalesced symbols.
OPT_LDFLAGS="${OPT_LDFLAGS} -Wl,-single_module -Wl,-flat_namespace"
os_include_dir="os/bsd/darwin"
;;
+ darwin[89] | darwin[89].* | darwin[1-9][0-9]* )
+ # On Darwin, performance is improved if libstdc++ is single-module,
+ # and on 8+ compatibility is better if not -flat_namespace.
+ OPT_LDFLAGS="${OPT_LDFLAGS} -Wl,-single_module"
+ os_include_dir="os/bsd/darwin"
+ ;;
*djgpp*) # leading * picks up "msdosdjgpp"
os_include_dir="os/djgpp"
;;