Software /
code /
prosody
Changeset
5048:e02161ba20e0
configure: Add _GNU_SOURCE flag to linux and debian presets to enable Linux fallocate()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 29 Jul 2012 01:37:15 +0200 |
parents | 5045:4ba6940deed0 |
children | 5049:5d685f123332 |
files | configure |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Sat Jul 28 22:37:24 2012 +0200 +++ b/configure Sun Jul 29 01:37:15 2012 +0200 @@ -96,6 +96,7 @@ LUA_SUFFIX_SET=yes LUA_INCDIR=/usr/include/lua5.1; LUA_INCDIR_SET=yes + CFLAGS="$CFLAGS -D_GNU_SOURCE" fi if [ "$OSTYPE" = "macosx" ] then LUA_INCDIR=/usr/local/include; @@ -110,6 +111,7 @@ LUA_LIBDIR=/usr/local/lib LUA_LIBDIR_SET=yes CFLAGS="-Wall -fPIC" + CFLAGS="$CFLAGS -D_GNU_SOURCE" LDFLAGS="-shared" fi if [ "$OSTYPE" = "freebsd" -o "$OSTYPE" = "openbsd" ]