configure uses AC_SYS_LARGEFILE to determine whether to define _FILE_OFFSET_BITS=64, in which case fseeko64 and lseek64 are used in place of fseeko and lseek. However, this is technically backwards, as _FILE_OFFSET_BITS=64 is supposed to be used to override fseeko etc. with 64-bit variants even on 32-bit systems, and the explicit 64 variants are correctly guarded by _LARGEFILE64_SOURCE. This results in implicit declarations in 32-bit systems (i686) which recently became errors.
This commit is contained in:
parent
24fba90281
commit
1602a6531d
@ -41,6 +41,10 @@ This package contains header files and libraries for %{name}.
|
||||
iconv -f ISO88591 -t utf-8 -o THANKS.utf8 THANKS && mv THANKS.utf8 THANKS
|
||||
|
||||
%build
|
||||
%ifarch %{ix86}
|
||||
# avoid implicit declaration of fseeko64, lseek64
|
||||
export CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
|
||||
%endif
|
||||
%configure \
|
||||
--disable-vcd-info \
|
||||
--disable-dependency-tracking \
|
||||
|
Loading…
Reference in New Issue
Block a user