summaryrefslogtreecommitdiff
path: root/libstdc++-v3/configure.host
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2006-12-02 17:06:57 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2006-12-02 17:06:57 +0000
commit074377fda7148d34c7a4a0fba356e705c4709930 (patch)
tree63f0192910afa6b6123bc021825023581450915d /libstdc++-v3/configure.host
parentdff2f6650bae91d28851542d0aee478f8fc5d1ca (diff)
downloadgcc-074377fda7148d34c7a4a0fba356e705c4709930.tar.gz
2006-12-02 Howard Hinnant <hhinnant@apple.com>
* acinclude.m4: Allow OPTIMIZE_CXXFLAGS to be set by configure.host. * configure.host: Set OPTIMIZE_CXXFLAGS to -fvisibility-inlines-hidden for x86/darwin. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119450 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/configure.host')
-rw-r--r--libstdc++-v3/configure.host5
1 files changed, 5 insertions, 0 deletions
diff --git a/libstdc++-v3/configure.host b/libstdc++-v3/configure.host
index 441eb4cab37..ef4d1de4c02 100644
--- a/libstdc++-v3/configure.host
+++ b/libstdc++-v3/configure.host
@@ -202,6 +202,11 @@ case "${host_os}" in
# 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"
+ case "${host_cpu}" in
+ i[34567]86 | x86_64)
+ OPTIMIZE_CXXFLAGS="${OPTIMIZE_CXXFLAGS} -fvisibility-inlines-hidden"
+ ;;
+ esac
os_include_dir="os/bsd/darwin"
;;
*djgpp*) # leading * picks up "msdosdjgpp"