From 3425454a10d307fae891fb667cf7969e945cde79 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 9 Oct 2015 10:10:37 -0700 Subject: Trust AC_SYS_LARGEFILE to provide large file support AC_SYS_LARGEFILE defines _FILE_OFFSET_BITS in config.h if needed for LFS, and this automatically maps things like open to open64. But quite a few places used explicit 64-bit names, which won't work on platforms like FreeBSD where off_t is always 64-bit and there are no foo64 names. It's better to just trust that AC_SYS_LARGEFILE is doing it correctly. But we can verify this too, as some file could easily forget to include config.h. The new tests/run-lfs-symbols.sh checks all build targets against lfs-symbols (taken from lintian) to make sure everything was implicitly mapped to 64-bit variants when _FILE_OFFSET_BITS is set. Signed-off-by: Josh Stone --- config/ChangeLog | 4 ++++ config/eu.am | 3 +++ 2 files changed, 7 insertions(+) (limited to 'config') diff --git a/config/ChangeLog b/config/ChangeLog index ba5cb387..41678214 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,7 @@ +2015-10-09 Josh Stone + + * eu.am (print-%): New target to print any variable. + 2015-10-05 Josh Stone * eu.am (%.os): Add AM_V_CC silencers. diff --git a/config/eu.am b/config/eu.am index 6ad8f822..1e332efa 100644 --- a/config/eu.am +++ b/config/eu.am @@ -74,3 +74,6 @@ else textrel_found = $(textrel_msg) endif textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi + +print-%: + @echo $*=$($*) -- cgit v1.2.1