mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-04 20:55:58 +01:00
Revert "meson: Make private static library symbols local"
This reverts commit 28d23ba6bda4f799b8d6689555cd33a40adda17e. The prelinking and symbol filtering pass breaks builds with link-time optimization enabled.
This commit is contained in:
parent
3c03639cd5
commit
15c8453ba1
1 changed files with 0 additions and 22 deletions
22
meson.build
22
meson.build
|
@ -150,30 +150,8 @@ lib_wlr = library(
|
|||
install: true,
|
||||
link_args: symbols_flag,
|
||||
link_depends: symbols_file,
|
||||
prelink: true,
|
||||
)
|
||||
|
||||
if get_option('default_library') != 'shared'
|
||||
lib_target = lib_wlr
|
||||
if get_option('default_library') == 'both'
|
||||
lib_target = lib_wlr.get_static_lib()
|
||||
endif
|
||||
objcopy_prog = find_program('objcopy', native: true)
|
||||
custom_target('libwlroots',
|
||||
input: lib_target,
|
||||
output: lib_target.name() + '.is-stripped',
|
||||
capture: true,
|
||||
command: [
|
||||
objcopy_prog.full_path(), '-w',
|
||||
'--localize-symbol=!wlr_*',
|
||||
'--localize-symbol=!_wlr_*',
|
||||
'--localize-symbol=*',
|
||||
'@INPUT@',
|
||||
],
|
||||
build_by_default: true,
|
||||
)
|
||||
endif
|
||||
|
||||
wlr_vars = {}
|
||||
foreach name, have : features
|
||||
wlr_vars += { 'have_' + name.underscorify(): have.to_string() }
|
||||
|
|
Loading…
Reference in a new issue