Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building with "-flto=auto" causes apps to crash #33

Open
etam opened this issue Aug 27, 2023 · 1 comment
Open

Building with "-flto=auto" causes apps to crash #33

etam opened this issue Aug 27, 2023 · 1 comment

Comments

@etam
Copy link

etam commented Aug 27, 2023

In openSUSE all packages have by default enabled LTO (but in cases like this it can be easily disabled). Fortunately this is caught by the tests, because helpers/helper_accept_no_peer_addr crashes and a test fails.

@aszlig
Copy link
Contributor

aszlig commented Oct 13, 2023

This is probably because we're using a custom --version-script:

ip2unix/meson.build

Lines 85 to 92 in 1083369

gen_ldscript = [python, script_gensyms, '--ldscript']
ldscript = custom_target('ldscript', input: lib_sources, output: 'ldscript',
command: gen_ldscript + gen_extra_args, capture: true)
lib_ldflags += [
'-Wl,--version-script,@0@'.format(sym_map.full_path()),
ldscript.full_path()
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants