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

cannot compile with link time optimization #268

Closed
1 task done
Jan200101 opened this issue Mar 13, 2022 · 1 comment · Fixed by #333
Closed
1 task done

cannot compile with link time optimization #268

Jan200101 opened this issue Mar 13, 2022 · 1 comment · Fixed by #333
Labels
bug Something isn't working
Milestone

Comments

@Jan200101
Copy link
Contributor

Jan200101 commented Mar 13, 2022

Operating System

Linux

Description of bug

compiling PolyMC with -flto=auto causes undefined references to libnbtplusplus

Steps to reproduce

compile with -flto=auto
e.g.

env CXXFLAGS="-flto=auto" cmake -B builddir
cmake --build builddir

Suspected cause

the a archive for libnbtplusplus gets stripped as part of link time optimization

This issue is unique

  • I have searched the issue tracker and did not find an issue describing my bug.
@Jan200101 Jan200101 added the bug Something isn't working label Mar 13, 2022
@Scrumplex Scrumplex added this to the 1.1.1 milestone Mar 13, 2022
@Scrumplex Scrumplex modified the milestones: 1.1.1, 1.1.2 Mar 20, 2022
@Scrumplex
Copy link
Contributor

Not sure about this. Let's move this to a different milestone

@Scrumplex Scrumplex modified the milestones: 1.1.2, 1.2.0 Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants