Skip to content

Commit

Permalink
[#29] Add -D_LARGEFILE64_SOURCE to CFLAGS so it compiles on i386 as well
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
normanmaurer committed Apr 10, 2015
1 parent 0a2d3c9 commit de2d208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/src/main/native-package/m4/custom.m4
Expand Up @@ -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)
Expand Down

0 comments on commit de2d208

Please sign in to comment.