3rdparty: libbacktrace: don't define POSIX_SOURCE, it breaks build on Mac
This commit is contained in:
parent
c06ea8d915
commit
afa829d996
2 changed files with 2 additions and 4 deletions
4
3rdparty/libbacktrace/wscript
vendored
4
3rdparty/libbacktrace/wscript
vendored
|
@ -88,8 +88,6 @@ def configure(conf):
|
||||||
conf.define('__EXTENSIONS__', 1)
|
conf.define('__EXTENSIONS__', 1)
|
||||||
conf.define('_DARWIN_USE_64_BIT_INODE', 1)
|
conf.define('_DARWIN_USE_64_BIT_INODE', 1)
|
||||||
conf.define('_LARGE_FILES', 1)
|
conf.define('_LARGE_FILES', 1)
|
||||||
conf.define('_POSIX_SOURCE', 1)
|
|
||||||
conf.define('_POSIX_1_SOURCE', 1)
|
|
||||||
conf.check_large_file(compiler='c', execute=False, mandatory=False) # sets _FILE_OFFSET_BITS
|
conf.check_large_file(compiler='c', execute=False, mandatory=False) # sets _FILE_OFFSET_BITS
|
||||||
|
|
||||||
conf.env.CFLAGS_EXTRAFLAGS = conf.filter_cflags(['-funwind-tables', '-g'], [])
|
conf.env.CFLAGS_EXTRAFLAGS = conf.filter_cflags(['-funwind-tables', '-g'], [])
|
||||||
|
@ -178,7 +176,7 @@ def build(bld):
|
||||||
|
|
||||||
task = bld.stlib(
|
task = bld.stlib(
|
||||||
source = ['libbacktrace/' + i for i in sources],
|
source = ['libbacktrace/' + i for i in sources],
|
||||||
target = 'libbacktrace',
|
target = 'backtrace',
|
||||||
features = 'frandomseed' if bld.env.HAVE_FRANDOM_SEED else '',
|
features = 'frandomseed' if bld.env.HAVE_FRANDOM_SEED else '',
|
||||||
use = 'EXTRAFLAGS lzma z zstd',
|
use = 'EXTRAFLAGS lzma z zstd',
|
||||||
includes = '. libbacktrace/',
|
includes = '. libbacktrace/',
|
||||||
|
|
|
@ -136,7 +136,7 @@ def build(bld):
|
||||||
# public includes for renderers and utils use
|
# public includes for renderers and utils use
|
||||||
bld(name = 'engine_includes', export_includes = '. common common/imagelib', use = 'filesystem_includes')
|
bld(name = 'engine_includes', export_includes = '. common common/imagelib', use = 'filesystem_includes')
|
||||||
|
|
||||||
libs = ['engine_includes', 'public', 'dllemu', 'werror', 'libbacktrace']
|
libs = ['engine_includes', 'public', 'dllemu', 'werror', 'backtrace']
|
||||||
includes = ['server', 'client', 'client/vgui', 'common/soundlib']
|
includes = ['server', 'client', 'client/vgui', 'common/soundlib']
|
||||||
|
|
||||||
# basic build: dedicated only
|
# basic build: dedicated only
|
||||||
|
|
Loading…
Add table
Reference in a new issue