Open toutriste opened 2 years ago
You need to build seasocks with -fPIC
.
This can be done by configuring seasocks with CMAKE_POSITION_INDEPENDENT_CODE
:
cmake -S /path/to/seasocks -B /tmp/seasocks_build -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_SHARED_LIBS=OFF
cmake --build /tmp/seasocks_build
Perhaps we should add the following to our cmake script:
set(CMAKE_POSITION_INDEPENDENT_CODE ON CACHE BOOL "Enable Position Independent Code")
Hi, how can I static link seasocks? I did not found anything on the documentation..
I have tried this:
LIBRARIES = -lm /home/user/seasocks/build/src/main/c/libseasocks.a
but getting these errors:
I suppose there is an extra step when I'm building seasocks?