mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 07:48:50 -05:00
Add large file support CFLAGS to pkgconfig file
Large file support is enabled by our configure script as required. If anything linking to libalpm does not also define large file support, there will be differences in the size of off_t which are not caught until runtime. Add the required CFLAGS to the pkg-config file so that users of libalpm know what flags are required. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
dfa4dcb16d
commit
088649534e
@ -165,6 +165,15 @@ AC_ARG_ENABLE(git-version,
|
|||||||
# testing compilation against gpgme).
|
# testing compilation against gpgme).
|
||||||
AC_SYS_LARGEFILE
|
AC_SYS_LARGEFILE
|
||||||
|
|
||||||
|
# Record large file flags in pkgconfig file
|
||||||
|
if test "$enable_largefile" != no; then
|
||||||
|
if test "$ac_cv_sys_file_offset_bits" != 'no'; then
|
||||||
|
LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
AC_SUBST(LFS_CFLAGS)
|
||||||
|
|
||||||
|
|
||||||
# Checks for programs.
|
# Checks for programs.
|
||||||
AC_PROG_AWK
|
AC_PROG_AWK
|
||||||
AC_PROG_CC_C99
|
AC_PROG_CC_C99
|
||||||
|
@ -7,6 +7,6 @@ Name: libalpm
|
|||||||
Description: Arch Linux package management library
|
Description: Arch Linux package management library
|
||||||
URL: http://www.archlinux.org/pacman/
|
URL: http://www.archlinux.org/pacman/
|
||||||
Version: @LIB_VERSION@
|
Version: @LIB_VERSION@
|
||||||
Cflags: -I${includedir}
|
Cflags: -I${includedir} @LFS_CFLAGS@
|
||||||
Libs: -L${libdir} -lalpm
|
Libs: -L${libdir} -lalpm
|
||||||
Libs.private: @LIBS@ @LIBARCHIVE_LIBS@ @LIBSSL_LIBS@ @LIBCURL_LIBS@ @GPGME_LIBS@
|
Libs.private: @LIBS@ @LIBARCHIVE_LIBS@ @LIBSSL_LIBS@ @LIBCURL_LIBS@ @GPGME_LIBS@
|
||||||
|
Loading…
Reference in New Issue
Block a user