Skip to content

Conversation

@spyder46n2
Copy link
Contributor

On Linux the builds it is required to use the -fPIC flag to compile. It is documented as such, but many people overlook it and report it as a build problem. This change makes it so that fPIC is enabled by default on Linux which should resolve this from being reported as a bug.
Also adding additional NONCE to the miner_tests for more robust testing.

@underdarkskies
Copy link
Collaborator

underdarkskies commented Aug 3, 2018

I don't think this should be included. the reason fpic flags are required is due to the gcc version, on many linux versions having an issue with the crypto headers. this is resolved in gcc 7 and why fpic flags are not needed when compiling and cross compiling on ubuntu bionic, as the build-essentials package pulls in gcc 7, whereas other distros do not. gcc 4.x versions seem to have the issue.

@underdarkskies
Copy link
Collaborator

underdarkskies commented Aug 3, 2018

also the --prefix=$BDB_PREFIX can be removed from the documentation as the RAVEN_FIND_BDB48 has been repaired.

@blondfrogs blondfrogs merged commit 4ac2565 into develop Aug 3, 2018
@spyder46n2 spyder46n2 deleted the mney--set_fPIC_Linux--nonce_4_miner_tests branch August 3, 2018 18:34
@cryptforall
Copy link

Someone missed a chapter in -fpic at school!

@underdarkskies underdarkskies mentioned this pull request Aug 4, 2018
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.

5 participants