-
Notifications
You must be signed in to change notification settings - Fork 43
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
need to build static libs with -fPIC for making a shared object #11
Comments
What OS are you on and what compiler do you use? |
That would be clang-9 on x86_64 linux . I have seen the "relocation R_X86_64_32S ... when making a shared object, recompile using -fPIC" in the past. PIC (position-independent code) for everything (including bits from a consistuting static object archive) that goes into a shared library seems quite reasonable? |
Arch Linux I suppose? File a pull request please. |
Fedora, actually. That Arch Linux patch is interesting - I came across those Anyway, I'll have a better look at that change, and if it is adaptable to fedora in a simple way, I'll make a pull. |
Have you found a solution?
|
Sorry haven't revisited this, but apparently I "...add -fPIC to the building of libLLVMSupport.a (this I did).." |
This happens during osxcross build, but I assume it should be filed here:
I suppose there are two answers to this - add
-fPIC
to the building of libLLVMSupport.a (this I did), or disable the building of shared libtapi.so and make sure the rest works with a static libtapi.aThe text was updated successfully, but these errors were encountered: