Skip to content

Static link seasocks #184

@toutriste

Description

@toutriste

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:

/usr/bin/ld: /home/user/seasocks/build/src/main/c/libseasocks.a(Server.cpp.o): relocation R_X86_64_PC32 against symbol `_ZTVN8seasocks6ServerE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status

I suppose there is an extra step when I'm building seasocks?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions