From: Iain Sandoe Date: Mon, 24 Dec 2018 12:26:11 +0000 (+0000) Subject: Fix Darwin PR libstdc++/70694 X-Git-Tag: releases/gcc-7.5.0~700 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f02c19cf9b8f302f6e83de5f3f07372ab234e0f8;p=thirdparty%2Fgcc.git Fix Darwin PR libstdc++/70694 2018-12-24 Iain Sandoe Backport from mainline 2018-08-25 Iain Sandoe PR libstdc++/70694 * configure.host (OPT_LDFLAGS): Don't append -fvisibility-inlines-hidden for newer Darwin. From-SVN: r267402 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index a342ff4e44f8..de26ed1c0959 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,12 @@ +2018-12-24 Iain Sandoe + + Backport from mainline + 2018-08-25 Iain Sandoe + + PR libstdc++/70694 + * configure.host (OPT_LDFLAGS): Don't append + -fvisibility-inlines-hidden for newer Darwin. + 2018-12-06 Release Manager * GCC 7.4.0 released. diff --git a/libstdc++-v3/configure.host b/libstdc++-v3/configure.host index caea9de9c765..155a3cdea1ba 100644 --- a/libstdc++-v3/configure.host +++ b/libstdc++-v3/configure.host @@ -230,16 +230,15 @@ case "${host_os}" in os_include_dir="os/newlib" OPT_LDFLAGS="${OPT_LDFLAGS} \$(lt_host_flags)" ;; - darwin | darwin[1-7] | darwin[1-7].*) - # On Darwin, performance is improved if libstdc++ is single-module. - # Up to at least 10.3.7, -flat_namespace is required for proper - # treatment of coalesced symbols. + darwin[4-7] | darwin[4-7].*) + # For earlier Darwin, performance is improved if libstdc++ is + # single-module. 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. + darwin8 | darwin8.* ) + # For 8+ compatibility is better if not -flat_namespace. OPT_LDFLAGS="${OPT_LDFLAGS} -Wl,-single_module" case "${host_cpu}" in i[34567]86 | x86_64) @@ -248,6 +247,10 @@ case "${host_os}" in esac os_include_dir="os/bsd/darwin" ;; + darwin*) + # Post Darwin8, defaults should be sufficient. + os_include_dir="os/bsd/darwin" + ;; *djgpp*) # leading * picks up "msdosdjgpp" os_include_dir="os/djgpp" error_constants_dir="os/djgpp"