By default for x86_64, the GNU C Library is built with the vector
math library. Use this option to disable the vector math library.
+'--disable-static-c++-tests'
+ By default, if the C++ toolchain lacks support for static linking,
+ configure fails to find the C++ header files and the glibc build
+ fails. '--disable-static-c++-link-check' allows the glibc build to
+ finish, but static C++ tests will fail if the C++ toolchain doesn't
+ have the necessary static C++ libraries. Use this option to skip
+ the static C++ tests. This option implies
+ '--disable-static-c++-link-check'.
+
'--disable-static-c++-link-check'
By default, if the C++ toolchain lacks support for static linking,
configure fails to find the C++ header files and the glibc build
enable_option_checking
with_pkgversion
with_bugurl
+enable_static_c___tests
enable_static_c___link_check
with_gd
with_gd_include
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
+ --disable-static-c++-tests
+ disable static C++ tests[default=no]
--disable-static-c++-link-check
disable static C++ link check [default=no]
--disable-sanity-checks really do not use threads (should not be used except
fi
+# This will get text that should go into config.make.
+config_vars=
+
+# Check whether --enable-static-c++-tests was given.
+if test ${enable_static_c___tests+y}
+then :
+ enableval=$enable_static_c___tests; static_cxx_tests=$enableval
+else $as_nop
+ static_cxx_tests=yes
+fi
+
+config_vars="$config_vars
+static-cxx-tests = $static_cxx_tests"
+
# Check whether --enable-static-c++-link-check was given.
if test ${enable_static_c___link_check+y}
then :
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
conftest$ac_exeext conftest.$ac_ext
-if test $static_cxx_link_check = yes; then
+if test $static_cxx_link_check$static_cxx_tests = yesyes; then
# Static case.
old_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -static"
as_fn_error $? "you must configure in a separate build directory" "$LINENO" 5
fi
-# This will get text that should go into config.make.
-config_vars=
-
# Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
# Check whether --with-gd was given.
AC_SUBST(cross_compiling)
AC_PROG_CPP
+# This will get text that should go into config.make.
+config_vars=
+
+AC_ARG_ENABLE([static-c++-tests],
+ AS_HELP_STRING([--disable-static-c++-tests],
+ [disable static C++ tests@<:@default=no@:>@]),
+ [static_cxx_tests=$enableval],
+ [static_cxx_tests=yes])
+LIBC_CONFIG_VAR([static-cxx-tests], [$static_cxx_tests])
+
AC_ARG_ENABLE([static-c++-link-check],
AS_HELP_STRING([--disable-static-c++-link-check],
[disable static C++ link check @<:@default=no@:>@]),
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
[libc_cv_cxx_link_ok=yes],
[libc_cv_cxx_link_ok=no])
-if test $static_cxx_link_check = yes; then
+if test $static_cxx_link_check$static_cxx_tests = yesyes; then
# Static case.
old_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -static"
AC_MSG_ERROR([you must configure in a separate build directory])
fi
-# This will get text that should go into config.make.
-config_vars=
-
# Check for a --with-gd argument and set libgd-LDFLAGS in config.make.
AC_ARG_WITH([gd],
AS_HELP_STRING([--with-gd=DIR],
By default for x86_64, @theglibc{} is built with the vector math library.
Use this option to disable the vector math library.
+@item --disable-static-c++-tests
+By default, if the C++ toolchain lacks support for static linking,
+configure fails to find the C++ header files and the glibc build fails.
+@option{--disable-static-c++-link-check} allows the glibc build to finish,
+but static C++ tests will fail if the C++ toolchain doesn't have the
+necessary static C++ libraries. Use this option to skip the static C++
+tests. This option implies @option{--disable-static-c++-link-check}.
+
@item --disable-static-c++-link-check
By default, if the C++ toolchain lacks support for static linking,
configure fails to find the C++ header files and the glibc build fails.
# tests-static
tests += tst-cancel24-static
+ifeq ($(static-cxx-tests),no)
+tests-unsupported += tst-cancel24-static
+endif
tests-internal += \
tst-sem11-static \