Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 15c8453

Browse files
kennylevinsenemersion
authored andcommitted
Revert "meson: Make private static library symbols local"
This reverts commit 28d23ba. The prelinking and symbol filtering pass breaks builds with link-time optimization enabled.
1 parent 3c03639 commit 15c8453

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

meson.build

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -150,30 +150,8 @@ lib_wlr = library(
150150
install: true,
151151
link_args: symbols_flag,
152152
link_depends: symbols_file,
153-
prelink: true,
154153
)
155154

156-
if get_option('default_library') != 'shared'
157-
lib_target = lib_wlr
158-
if get_option('default_library') == 'both'
159-
lib_target = lib_wlr.get_static_lib()
160-
endif
161-
objcopy_prog = find_program('objcopy', native: true)
162-
custom_target('libwlroots',
163-
input: lib_target,
164-
output: lib_target.name() + '.is-stripped',
165-
capture: true,
166-
command: [
167-
objcopy_prog.full_path(), '-w',
168-
'--localize-symbol=!wlr_*',
169-
'--localize-symbol=!_wlr_*',
170-
'--localize-symbol=*',
171-
'@INPUT@',
172-
],
173-
build_by_default: true,
174-
)
175-
endif
176-
177155
wlr_vars = {}
178156
foreach name, have : features
179157
wlr_vars += { 'have_' + name.underscorify(): have.to_string() }

0 commit comments

Comments
 (0)