@@ -240,6 +240,13 @@ if 'CFLAGS' is specified it must enable optimization. For example:
independently-maintained implementations of libcrypt. It may
become the default in a future release.
+'--enable-math-noprivate'
+ By default, libm and libmvec (if available) are built in such a way
+ that they rely on internals in the rest of the library (notably
+ libc). With this option, the math libraries are built in a way
+ that avoids such dependencies. As a result, it is possible to use
+ them with older versions of the library.
+
'--disable-experimental-malloc'
By default, a per-thread cache is enabled in 'malloc'. While this
cache can be disabled on a per-application basis using tunables
@@ -153,6 +153,10 @@
code to link against. */
#undef LINK_OBSOLETE_NSL
+/* Define as 1 if GLIBC_PRIVATE symbols should be avoided in the math
+ libraries. */
+#define CONFIG_MATH_NOPRIVATE 0
+
/* Define if Systemtap <sys/sdt.h> probes should be defined. */
#undef USE_STAP_PROBE
@@ -102,6 +102,7 @@ use-nscd = @use_nscd@
build-hardcoded-path-in-tests= @hardcoded_path_in_tests@
build-pt-chown = @build_pt_chown@
have-tunables = @have_tunables@
+config-math-noprivate = @config_math_noprivate@
# Build tools.
CC = @CC@
@@ -672,6 +672,7 @@ base_machine
have_tunables
build_pt_chown
build_nscd
+config_math_noprivate
build_obsolete_nsl
link_obsolete_rpc
libc_cv_static_nss_crypt
@@ -786,6 +787,7 @@ enable_crypt
enable_nss_crypt
enable_obsolete_rpc
enable_obsolete_nsl
+enable_math_noprivate
enable_systemtap
enable_build_nscd
enable_nscd
@@ -1460,6 +1462,7 @@ Optional Features:
link-time usage
--enable-obsolete-nsl build and install the obsolete libnsl library and
depending NSS modules
+ --enable-math-noprivate avoid GLIBC_PRIVATE symbols in math libraries
--enable-systemtap enable systemtap static probe points [default=no]
--disable-build-nscd disable building and installing the nscd daemon
--disable-nscd library functions will not contact the nscd daemon
@@ -3667,6 +3670,19 @@ if test "$build_obsolete_nsl" = yes; then
fi
+# Check whether --enable-math-noprivate was given.
+if test "${enable_math_noprivate+set}" = set; then :
+ enableval=$enable_math_noprivate; config_math_noprivate=$enableval
+else
+ config_math_noprivate=no
+fi
+
+
+if test "$config_math_noprivate" = yes; then
+ $as_echo "#define CONFIG_MATH_NOPRIVATE 1" >>confdefs.h
+
+fi
+
# Check whether --enable-systemtap was given.
if test "${enable_systemtap+set}" = set; then :
enableval=$enable_systemtap; systemtap=$enableval
@@ -397,6 +397,16 @@ if test "$build_obsolete_nsl" = yes; then
AC_DEFINE(LINK_OBSOLETE_NSL)
fi
+AC_ARG_ENABLE([math-noprivate],
+ AC_HELP_STRING([--enable-math-noprivate],
+ [avoid GLIBC_PRIVATE symbols in math libraries]),
+ [config_math_noprivate=$enableval],
+ [config_math_noprivate=no])
+AC_SUBST(config_math_noprivate)
+if test "$config_math_noprivate" = yes; then
+ AC_DEFINE(CONFIG_MATH_NOPRIVATE)
+fi
+
AC_ARG_ENABLE([systemtap],
[AS_HELP_STRING([--enable-systemtap],
[enable systemtap static probe points @<:@default=no@:>@])],
@@ -20,7 +20,8 @@
# define errno rtld_errno
extern int rtld_errno attribute_hidden;
-# elif IS_IN_LIB && !IS_IN (rtld)
+# elif IS_IN_LIB && !IS_IN (rtld) \
+ && (!CONFIG_MATH_NOPRIVATE || !(IS_IN (libm) || IS_IN (libmvec)))
# include <tls.h>
@@ -271,6 +271,13 @@ This option is for hackers and distributions experimenting with
independently-maintained implementations of libcrypt. It may become
the default in a future release.
+@item --enable-math-noprivate
+By default, libm and libmvec (if available) are built in such a way that
+they rely on internals in the rest of the library (notably libc). With
+this option, the math libraries are built in a way that avoids such
+dependencies. As a result, it is possible to use them with older
+versions of the library.
+
@item --disable-experimental-malloc
By default, a per-thread cache is enabled in @code{malloc}. While
this cache can be disabled on a per-application basis using tunables