mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Disable _FILE_OFFSET_BITS if the compiler defaults to it
Even though building glibc with LFS flags is not supported, and the the usual way is to patch the build system to avoid it [1]; some system do enable it by default, and it increases the requirements to build glibc in such cases (it also does not help newcomers when trying to build glibc). The conform namespace and linknamespace tests also do not expect that flag to be set by default, so disable it as well. Checked with a build/check for major ABI and some (i386, arm, mipsel, hppa) with a toolchain that has LFS flags by default. [1] https://sourceware.org/bugzilla/show_bug.cgi?id=31624 Reviewed-by: DJ Delorie <dj@redhat.com>
This commit is contained in:
32
configure
vendored
32
configure
vendored
@@ -635,6 +635,7 @@ libc_cv_gcc_unwind_find_fde
|
||||
libc_extra_cppflags
|
||||
libc_extra_cflags
|
||||
libc_cv_cxx_thread_local
|
||||
no_file_offset_bits_source
|
||||
fortify_source
|
||||
no_fortify_source
|
||||
libc_cv_fortify_source
|
||||
@@ -7784,6 +7785,37 @@ fi
|
||||
config_vars="$config_vars
|
||||
supported-fortify = $libc_cv_supported_fortify_source"
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
int
|
||||
main (void)
|
||||
{
|
||||
|
||||
#ifndef _FILE_OFFSET_BITS
|
||||
# error _FILE_OFFSET_BITS not defined
|
||||
#endif
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_cpp "$LINENO"
|
||||
then :
|
||||
libc_cv_compiler_default_file_offset_bits=yes
|
||||
else case e in #(
|
||||
e) libc_cv_compiler_default_file_offset_bits=no ;;
|
||||
esac
|
||||
fi
|
||||
rm -f conftest.err conftest.i conftest.$ac_ext
|
||||
if test "$libc_cv_compiler_default_file_offset_bits" = yes
|
||||
then :
|
||||
no_file_offset_bits_source="-U_FILE_OFFSET_BITS"
|
||||
fi
|
||||
|
||||
config_vars="$config_vars
|
||||
no-file-offset-bits-source = $no_file_offset_bits_source"
|
||||
|
||||
|
||||
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the assembler requires one version per symbol" >&5
|
||||
printf %s "checking whether the assembler requires one version per symbol... " >&6; }
|
||||
if test ${libc_cv_symver_needs_alias+y}
|
||||
|
Reference in New Issue
Block a user