Skip to content

Commit

Permalink
3rdparty: libbacktrace: don't define POSIX_SOURCE, it breaks build on…
Browse files Browse the repository at this point in the history
… Mac
  • Loading branch information
a1batross committed Feb 9, 2025
1 parent dba0c58 commit 0f1e314
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions 3rdparty/libbacktrace/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ def configure(conf):
conf.define('__EXTENSIONS__', 1)
conf.define('_DARWIN_USE_64_BIT_INODE', 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.env.CFLAGS_EXTRAFLAGS = conf.filter_cflags(['-funwind-tables', '-g'], [])
Expand Down Expand Up @@ -178,7 +176,7 @@ def build(bld):

task = bld.stlib(
source = ['libbacktrace/' + i for i in sources],
target = 'libbacktrace',
target = 'backtrace',
features = 'frandomseed' if bld.env.HAVE_FRANDOM_SEED else '',
use = 'EXTRAFLAGS lzma z zstd',
includes = '. libbacktrace/',
Expand Down
2 changes: 1 addition & 1 deletion engine/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def build(bld):
# public includes for renderers and utils use
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']

# basic build: dedicated only
Expand Down

0 comments on commit 0f1e314

Please sign in to comment.