Skip to content

Commit

Permalink
Fix build on old OpenWRT versions
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed Jun 13, 2024
1 parent ab06b3f commit 70de697
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/scons_helpers/build-3rdparty.py
Original file line number Diff line number Diff line change
Expand Up @@ -1080,6 +1080,7 @@ def die(text, *args):
shutil.copy('libuv.a', '../libuv.a')
changedir(ctx, '..')
else:
subst_files(ctx, 'src/unix/core.c', ' dup3', ' uv__dup3')
execute(ctx, './autogen.sh')
execute(ctx, './configure --host={host} {vars} {flags} {opts}'.format(
host=ctx.toolchain,
Expand Down Expand Up @@ -1518,6 +1519,8 @@ def die(text, *args):
opts=' '.join([
# disable memory leak detection which is too hard to use properly
'--disable-memory-leak-detection',
# doesn't work on older platforms
'--disable-extensions',
'--enable-static',
])))
execute_make(ctx)
Expand Down

0 comments on commit 70de697

Please sign in to comment.