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

how to use it in my project #146

Closed
chain789 opened this issue Oct 30, 2019 · 1 comment
Closed

how to use it in my project #146

chain789 opened this issue Oct 30, 2019 · 1 comment

Comments

@chain789
Copy link

When I link the libethash.a ,I get the following errors
/usr/bin/ld: //usr/local/lib/libethash.a(ethash.cpp.o): relocation R_X86_64_32 against `__gxx_personality_v0' can not be used when making a shared object; recompile with -fPIC
//usr/local/lib/libethash.a: error adding symbols: Bad value

@chfast
Copy link
Owner

chfast commented Aug 3, 2020

Configure CMake with -DCMAKE_POSITION_INDEPENDENT_CODE=TRUE. The official binaries should be already built like so.

@chfast chfast closed this as completed Aug 3, 2020
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