From 8fb53ec7d9f08a6b54fa5c7df7a0d7320d49da1f Mon Sep 17 00:00:00 2001 From: Steven 'Steve' Kendall Date: Thu, 8 Jun 2023 19:45:15 +0000 Subject: [PATCH] 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. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 0588eec3..1dae9090 100644 --- a/configure.ac +++ b/configure.ac @@ -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 \