You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I’ve encountered an issue when using override_options with cpp_link_args in Meson. It appears that cpp_link_args doesn’t replace existing linker flags, but instead adds them. This is problematic for targets like shared_library().
I attempted to filter out -static using the following approach:
cpp_link_args_without_static = []
foreach e : get_option('cpp_link_args')
if e not in ['-static']
cpp_link_args_without_static += e
endif
endforeach
However, even with override_options to adjust cpp_link_args, Meson still appends rather than removing it, which causes compilation issues.
The text was updated successfully, but these errors were encountered:
Hi,
I’ve encountered an issue when using
override_options
withcpp_link_args
in Meson. It appears thatcpp_link_args
doesn’t replace existing linker flags, but instead adds them. This is problematic for targets likeshared_library().
I attempted to filter out -static using the following approach:
However, even with override_options to adjust
cpp_link_args
, Meson still appends rather than removing it, which causes compilation issues.The text was updated successfully, but these errors were encountered: