diff options
author | Karl Berry <karl@freefriends.org> | 2018-01-09 19:23:39 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-01-09 19:23:39 +0000 |
commit | a3c2d080c2fd28955404dec4f2f7118fbe291bfc (patch) | |
tree | 825391e5313e04f0cbc75e89d58be10d3aab726b /Build/source/libs/harfbuzz/configure.ac | |
parent | 9b0195121df2c53bdd030fdec6d7871f27f057f0 (diff) |
use AX_CXX_COMPILE_STDCXX for optional C++11 support, and KPSE_COMPILER_VISIBILITY for inlines-visibility, instead of hardwiring
git-svn-id: svn://tug.org/texlive/trunk@46258 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/harfbuzz/configure.ac')
-rw-r--r-- | Build/source/libs/harfbuzz/configure.ac | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/Build/source/libs/harfbuzz/configure.ac b/Build/source/libs/harfbuzz/configure.ac index eb0f0e33cff..3666af462be 100644 --- a/Build/source/libs/harfbuzz/configure.ac +++ b/Build/source/libs/harfbuzz/configure.ac @@ -28,6 +28,11 @@ AC_PROG_CXX AC_PROG_RANLIB AC_PROG_LN_S +# Theoretically harfbuzz does not require C++11? +AX_CXX_COMPILE_STDCXX([11],,[optional]) + +KPSE_COMPILER_VISIBILITY + KPSE_GRAPHITE2_FLAGS KPSE_ICU_FLAGS @@ -43,9 +48,6 @@ if test "x$GCC" = "xyes"; then # Make symbols link locally LDFLAGS="$LDFLAGS -Bsymbolic-functions" - # Choose C++ version - CXXFLAGS="$CXXFLAGS -std=c++11 -D_GNU_SOURCE" - # Make sure we don't link to libstdc++ CXXFLAGS="$CXXFLAGS -fno-rtti -fno-exceptions" @@ -53,15 +55,6 @@ if test "x$GCC" = "xyes"; then CXXFLAGS="$CXXFLAGS -Wcast-align" case "$host" in - *-*-mingw*) - ;; - *) - # Hide inline methods - CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden" - ;; - esac - - case "$host" in arm-*-*) if test "x$ac_cv_alignof_struct_char__" != x1; then # Request byte alignment |