@@ -233,15 +233,9 @@ AC_ARG_ENABLE([lcov-branch-coverage],
233233 [ use_lcov_branch=yes] ,
234234 [ use_lcov_branch=no] )
235235
236- AC_ARG_ENABLE ( [ glibc-back-compat] ,
237- [ AS_HELP_STRING ( [ --enable-glibc-back-compat] ,
238- [ enable backwards compatibility with glibc] ) ] ,
239- [ use_glibc_compat=$enableval] ,
240- [ use_glibc_compat=no] )
241-
242236AC_ARG_ENABLE ( [ threadlocal] ,
243237 [ AS_HELP_STRING ( [ --enable-threadlocal] ,
244- [ enable features that depend on the c++ thread_local keyword (currently just thread names in debug logs). (default is to enabled if there is platform support and glibc-back-compat is not enabled )] ) ] ,
238+ [ enable features that depend on the c++ thread_local keyword (currently just thread names in debug logs). (default is to enable if there is platform support)] ) ] ,
245239 [ use_thread_local=$enableval] ,
246240 [ use_thread_local=auto] )
247241
@@ -860,24 +854,6 @@ AX_GCC_FUNC_ATTRIBUTE([visibility])
860854AX_GCC_FUNC_ATTRIBUTE ( [ dllexport] )
861855AX_GCC_FUNC_ATTRIBUTE ( [ dllimport] )
862856
863- if test x$use_glibc_compat != xno; then
864- AX_CHECK_LINK_FLAG ( [ [ -Wl,--wrap=__divmoddi4] ] , [ COMPAT_LDFLAGS="$COMPAT_LDFLAGS -Wl,--wrap=__divmoddi4"] )
865- AX_CHECK_LINK_FLAG ( [ [ -Wl,--wrap=log2f] ] , [ COMPAT_LDFLAGS="$COMPAT_LDFLAGS -Wl,--wrap=log2f"] )
866- case $host in
867- powerpc64* | ppc64*)
868- AX_CHECK_LINK_FLAG ( [ [ -Wl,--no-tls-get-addr-optimize] ] , [ COMPAT_LDFLAGS="$COMPAT_LDFLAGS -Wl,--no-tls-get-addr-optimize"] )
869- ;;
870- esac
871- AX_CHECK_LINK_FLAG ( [ [ -Wl,--wrap=log2] ] , [ COMPAT_LDFLAGS="$COMPAT_LDFLAGS -Wl,--wrap=log2"] )
872- AX_CHECK_LINK_FLAG ( [ [ -Wl,--wrap=log] ] , [ COMPAT_LDFLAGS="$COMPAT_LDFLAGS -Wl,--wrap=log"] )
873- AX_CHECK_LINK_FLAG ( [ [ -Wl,--wrap=pow] ] , [ COMPAT_LDFLAGS="$COMPAT_LDFLAGS -Wl,--wrap=pow"] )
874- AX_CHECK_LINK_FLAG ( [ [ -Wl,--wrap=exp] ] , [ COMPAT_LDFLAGS="$COMPAT_LDFLAGS -Wl,--wrap=exp"] )
875- AX_CHECK_LINK_FLAG ( [ [ -Wl,--wrap=exp2] ] , [ COMPAT_LDFLAGS="$COMPAT_LDFLAGS -Wl,--wrap=exp2"] )
876- AX_CHECK_LINK_FLAG ( [ [ -Wl,--wrap=fcntl] ] , [ COMPAT_LDFLAGS="$COMPAT_LDFLAGS -Wl,--wrap=fcntl"] )
877- else
878- AC_SEARCH_LIBS ( [ clock_gettime] ,[ rt] )
879- fi
880-
881857if test "x$enable_gprof" = xyes; then
882858 dnl -pg is incompatible with -pie. Since hardening and profiling together doesn't make sense,
883859 dnl we simply make them mutually exclusive here. Additionally, hardened toolchains may force
@@ -1042,7 +1018,7 @@ AC_LINK_IFELSE([AC_LANG_SOURCE([
10421018 ]
10431019)
10441020
1045- if test "x$use_thread_local" = xyes || { test "x$use_thread_local" = xauto && test "x$use_glibc_compat" = xno; } ; then
1021+ if test "x$use_thread_local" = xyes || test "x$use_thread_local" = xauto; then
10461022 TEMP_LDFLAGS="$LDFLAGS"
10471023 LDFLAGS="$TEMP_LDFLAGS $PTHREAD_CFLAGS"
10481024 AC_MSG_CHECKING ( [ for thread_local support] )
@@ -1733,7 +1709,6 @@ AM_CONDITIONAL([ENABLE_QT_TESTS],[test x$BUILD_TEST_QT = xyes])
17331709AM_CONDITIONAL([ ENABLE_BENCH] ,[ test x$use_bench = xyes] )
17341710AM_CONDITIONAL([ USE_QRCODE] , [ test x$use_qr = xyes] )
17351711AM_CONDITIONAL([ USE_LCOV] ,[ test x$use_lcov = xyes] )
1736- AM_CONDITIONAL([ GLIBC_BACK_COMPAT] ,[ test x$use_glibc_compat = xyes] )
17371712AM_CONDITIONAL([ HARDEN] ,[ test x$use_hardening = xyes] )
17381713AM_CONDITIONAL([ ENABLE_SSE42] ,[ test x$enable_sse42 = xyes] )
17391714AM_CONDITIONAL([ ENABLE_SSE41] ,[ test x$enable_sse41 = xyes] )
@@ -1772,7 +1747,6 @@ AC_SUBST(DEBUG_CPPFLAGS)
17721747AC_SUBST ( WARN_CXXFLAGS )
17731748AC_SUBST ( NOWARN_CXXFLAGS )
17741749AC_SUBST ( DEBUG_CXXFLAGS )
1775- AC_SUBST ( COMPAT_LDFLAGS )
17761750AC_SUBST ( ERROR_CXXFLAGS )
17771751AC_SUBST ( GPROF_CXXFLAGS )
17781752AC_SUBST ( GPROF_LDFLAGS )
0 commit comments