summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan B├╝hler <stbuehler@web.de>2017-10-24 16:30:33 +0200
committerGlenn Strauss <gstrauss@gluelogic.com>2017-10-28 22:41:32 -0400
commit706910ac6aac6c1eba856daf4d367d4bc3d0d000 (patch)
treede0003bfbdf1079028275467e44450b454ce46c6
parentf78749d3c64b7a97df4c2e436e0cb6fecda437d8 (diff)
downloadlighttpd1.4-706910ac6aac6c1eba856daf4d367d4bc3d0d000.tar.gz
lighttpd1.4-706910ac6aac6c1eba856daf4d367d4bc3d0d000.zip
[scons] add some generic defintions early
Also add _GNU_SOURCE.
-rw-r--r--SConstruct8
1 files changed, 7 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 1f00eebd..4c7732d3 100644
--- a/SConstruct
+++ b/SConstruct
@@ -163,6 +163,13 @@ if env['CC'] == 'gcc':
## we need x-open 6 and bsd 4.3 features
env.Append(CCFLAGS = Split('-Wall -O2 -g -W -pedantic -Wunused -Wshadow -std=gnu99'))
+env.Append(CPPFLAGS = [
+ '-D_FILE_OFFSET_BITS=64',
+ '-D_LARGEFILE_SOURCE',
+ '-D_LARGE_FILES',
+ '-D_GNU_SOURCE',
+])
+
if env['with_all']:
for feature in vars.keys():
# only enable 'with_*' flags
@@ -428,7 +435,6 @@ env.Append(CPPFLAGS = [
'-DPACKAGE_NAME=\\"' + package + '\\"',
'-DPACKAGE_VERSION=\\"' + version + '\\"',
'-DLIBRARY_DIR="\\"${libdir}\\""',
- '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE_SOURCE', '-D_LARGE_FILES'
] )
SConscript('src/SConscript', exports = 'env', variant_dir = 'sconsbuild/build', duplicate = 0)