Skip to content

Commit

Permalink
Fix libc library to depend on libc-sockets library
Browse files Browse the repository at this point in the history
  • Loading branch information
juj committed Feb 5, 2019
1 parent 52ce4d5 commit 0ff388f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/system_libs.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,12 +656,14 @@ class Dummy(object):
else:
system_libs += [Library('libgl', ext, create_gl, gl_symbols, [libc_name], False)] # noqa

system_libs.append(Library(libc_name, ext, create_libc, libc_symbols, libc_deps, False))
if shared.Settings.PROXY_POSIX_SOCKETS:
system_libs.append(Library('libposix-sockets-proxy', ext, create_posix_proxy, [], [], False))
forced += ['libposix-sockets-proxy']
libc_deps += ['libposix-sockets-proxy']
else:
system_libs.append(Library(libc_name + '-sockets', ext, create_libc_sockets, libc_sockets_symbols, libc_deps, False))
libc_deps += [libc_name + '-sockets']

system_libs.append(Library(libc_name, ext, create_libc, libc_symbols, libc_deps, False))

# if building to wasm, we need more math code, since we have less builtins
if shared.Settings.WASM:
Expand Down

0 comments on commit 0ff388f

Please sign in to comment.