URL:
<https://savannah.gnu.org/support/?110983>
Summary: AC_SYS_LARGEFILE doesn't honor AC_LANG setting
Group: Autoconf
Submitter: zackw
Submitted: Tue 19 Dec 2023 06:36:10 PM UTC
Priority: 5 - Unprioritized
Severity: 3 - Normal
Status: Confirmed
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Operating System: Solaris
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Tue 19 Dec 2023 06:36:10 PM UTC By: Zack Weinberg <zackw>
_AC_SYS_LARGEFILE_PROBE unconditionally modifies $CC, regardless of the
current AC_LANG setting. Therefore, a configure script like this
AC_INIT
AC_LANG([C++])
AC_SYS_LARGEFILE
AC_OUTPUT
will *not* enable large file support, on a system where it's off by default
but can be enabled. Because it put -D_FILE_OFFSET_BITS=64 into $CC, where
AC_COMPILE_IFELSE won't pick it up because we're using $CXX instead.
Since AC_SYS_YEAR2038 depends on AC_SYS_LARGEFILE, this affects that macro as
well.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/support/?110983>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/