From de2d2089046499afca542bd03058677307a82300 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Fri, 10 Apr 2015 08:51:55 +0200 Subject: [PATCH] [#29] Add -D_LARGEFILE64_SOURCE to CFLAGS so it compiles on i386 as well Motivation: We need to add -D_LARGEFILE64_SOURCE to CFLAGS so it compiles on i386 as well. Modifications: Add -D_LARGEFILE64_SOURCE to CLFAGS in m4 file Result: Now compiles on i386 as well. --- template/src/main/native-package/m4/custom.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/src/main/native-package/m4/custom.m4 b/template/src/main/native-package/m4/custom.m4 index 33556eae6..99114ca7a 100644 --- a/template/src/main/native-package/m4/custom.m4 +++ b/template/src/main/native-package/m4/custom.m4 @@ -47,7 +47,7 @@ AC_DEFUN([CUSTOM_M4_SETUP], fi dnl Update the compiler/linker flags to add APR and OpenSSL to the build path. - CFLAGS="$CFLAGS $TCN_OPENSSL_INC $APR_INCLUDES" + CFLAGS="$CFLAGS $TCN_OPENSSL_INC $APR_INCLUDES -D_LARGEFILE64_SOURCE" CXXFLAGS="$CXXFLAGS $TCN_OPENSSL_INC $APR_INCLUDES" LDFLAGS="$LDFLAGS $TCN_OPENSSL_LIBS $APR_LIBS" AC_SUBST(CFLAGS)