mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
configure: Add _GNU_SOURCE flag to linux and debian presets to enable Linux fallocate()
This commit is contained in:
parent
ce88f1c98c
commit
56ac0ec656
1 changed files with 2 additions and 0 deletions
2
configure
vendored
2
configure
vendored
|
@ -96,6 +96,7 @@ do
|
|||
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 @@ do
|
|||
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" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue