Skip to content

Commit

Permalink
build: fix linking on emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
mochaaP authored and athre0z committed Feb 7, 2025
1 parent 79d779a commit cbb6e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ if nolibc
'-fno-stack-protector',
language: 'c',
)
dep += declare_dependency(link_args: ['-nostdlib', '-nodefaultlibs'])
elif host_machine.system() == 'linux'
add_project_arguments(
'-D_GNU_SOURCE',
Expand All @@ -125,6 +124,7 @@ zycore_lib = library(
src + hdrs,
c_static_args: ['-DZYCORE_STATIC_BUILD'],
c_shared_args: ['-DZYCORE_SHOULD_EXPORT'],
link_args: (nolibc and cc.get_linker_id().startswith('ld.')) ? ['-nostdlib', '-nodefaultlibs'] : [],
gnu_symbol_visibility: 'hidden',
include_directories: inc,
implicit_include_directories: false,
Expand Down

0 comments on commit cbb6e09

Please sign in to comment.