From ec0557f08b2660118eaedb94471e5ab0f87cf2a3 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 31 Jan 2018 14:41:37 +0100 Subject: patch 8.0.1444: missing -D_FILE_OFFSET_BITS=64 may cause problems Problem: Missing -D_FILE_OFFSET_BITS=64 may cause problems if a library is compiled with it. Solution: Include -D_FILE_OFFSET_BITS if some CFLAGS has it. (James McCoy, closes #2600) --- src/auto/configure | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/auto') diff --git a/src/auto/configure b/src/auto/configure index 6a1677940..5657664a8 100755 --- a/src/auto/configure +++ b/src/auto/configure @@ -14314,6 +14314,18 @@ $as_echo "no" >&6; } fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to force -D_FILE_OFFSET_BITS=64" >&5 +$as_echo_n "checking whether we need to force -D_FILE_OFFSET_BITS=64... " >&6; } +if echo "$CFLAGS $LUA_CFLAGS $MZSCHEME_CFLAGS $PERL_CFLAGS $PYTHON_GETPATH_CFLAGS $PYTHON_CFLAGS $PYTHON3_CFLAGS $TCL_CFLAGS $RUBY_CFLAGS $GTK_CFLAGS" | grep -q D_FILE_OFFSET_BITS 2>/dev/null; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 $as_echo_n "checking linker --as-needed support... " >&6; } LINK_AS_NEEDED= -- cgit v1.2.1