drogonframework / drogonframework/drogon

cmake compile with -fPIC error?

Open
#1,999 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
14.3k
Forks
1.4k
Avg merge
1d 12h
Merged PRs (30d)
15

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.