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

cmake compile with -fPIC error? #1999

Open
bethebest0622 opened this issue Apr 17, 2024 · 0 comments
Open

cmake compile with -fPIC error? #1999

bethebest0622 opened this issue Apr 17, 2024 · 0 comments

Comments

@bethebest0622
Copy link

bethebest0622 commented Apr 17, 2024

I got the error when i add drogon library in my repo.

[ 71%] Linking CXX shared library libcurl_util.so
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: /usr/local/lib64/libdrogon.a(AccessLogger.cc.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/opt/rh/gcc-toolset-13/root/usr/libexec/gcc/x86_64-redhat-linux/13/ld: failed to set dynamic section sizes: bad value
collect2: error: ld returned 1 exit status

does this means i need to add compile config setting when i install drogon by source code?

why drogon dont set -fPIC by default?

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

1 participant