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

Updates to cmake to work around missing statics #231

Merged
merged 2 commits into from
Jun 29, 2021
Merged

Updates to cmake to work around missing statics #231

merged 2 commits into from
Jun 29, 2021

Conversation

emlowe
Copy link
Contributor

@emlowe emlowe commented Jun 14, 2021

Setup CMAKE to require C++17 - this helps with places where the default compiler does not (Centos 7) and errors out early
Also, configure to avoid making the "combined custom" library libbls.a if the platform does not have the static versions of libgmp or libsodium. The library and test programs still work, however, because the dynamic version will be linked to the executable (ie runtest, etc)
This does mean on such a system that when using libbls.a one does need to link to the dynamic libraries, but this is preferable to not building at all and throwing strange errors. This should fix issue #225

Copy link
Member

@hoffmang9 hoffmang9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@emlowe emlowe linked an issue Jun 15, 2021 that may be closed by this pull request
@emlowe emlowe linked an issue Jun 15, 2021 that may be closed by this pull request
@emlowe
Copy link
Contributor Author

emlowe commented Jun 15, 2021

I also made a small change for 32-bit systems (which are actually pretty rare now - most common Linux distros don't support them anymore).
Tested on Centos7 32-bit
Tested on Centos7 64-bit

Copy link
Member

@hoffmang9 hoffmang9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice add

Copy link
Member

@hoffmang9 hoffmang9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AOK

@wjblanke wjblanke merged commit f95d7c6 into main Jun 29, 2021
@wjblanke wjblanke deleted the cmake_fixes branch June 29, 2021 17:57
UdjinM6 pushed a commit to UdjinM6/bls-signatures that referenced this pull request Dec 1, 2021
* Updates to cmake to work around missing statics

* Add in 32bit check
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.

Build fails when GMP_NAME is found to be a shared lib *.so file Does not work on 32 bit system
3 participants