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

Fix LTO check on FreeBSD11 #207

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

erlbeck
Copy link

@erlbeck erlbeck commented Dec 22, 2020

Currently the LTO (link time optimisation) check is done by trying
to compile a single object file with the -flto option. This way the
check does not cover the case that the compiler supports it but the
linker does not.

This can happen for instance on FreeBSD11 with FreeBSD clang version
6.0.0 in combination with GNU ld 2.17.50, where the latter does not
support the -plugin option.

Modify the check by removing the -c flag from the compiler options.

Currently the LTO (link time optimisation) check is done by trying
to compile a single object file with the -flto option. This way the
check does not cover the case that the compiler supports it but the
linker does not.

This can happen for instance on FreeBSD11 with FreeBSD clang version
6.0.0 in combination with GNU ld 2.17.50, where the latter does not
support the -plugin option.

Modify the check by removing the -c flag from the compiler options.
@dch
Copy link
Contributor

dch commented Mar 11, 2021

@davisp I can't say I fully understand the issue, but I run into this on FreeBSD atm since last clang updates. Can you +1 / merge & tag so we can get this into couchdb git please?

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

Successfully merging this pull request may close these issues.

2 participants