configure: Add large file support via CFLAGS

Currently scanelf (pax-utils) detects missing LFS support in
the following files/calls:
fopen,__open_2,mmap,lseek,open /usr/lib/libasound.so.2.0.0
fopen,open /usr/lib/libatopology.so.2.0.0

Note that this may cause problems on systems with a 32-bit kernel,
but I've tested playing audio on a more recent 32-bit
system with a 64-bit kernel.
This commit is contained in:
Steven 'Steve' Kendall 2023-06-08 19:45:15 +00:00
parent b7389e2e2e
commit 8fb53ec7d9

View file

@ -743,6 +743,9 @@ if test ! -L "$srcdir"/include/alsa ; then
ln -sf . "$srcdir"/include/alsa
fi
dnl enable large file support
CFLAGS="${CFLAGS} -D_FILE_OFFSET_BITS=64"
AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
include/Makefile include/sound/Makefile include/sound/uapi/Makefile \
src/Versions src/Makefile \