Skip to content

Linker error bpmpd - recompile with -fPIC #41

@mfinean

Description

@mfinean

Error:
/usr/bin/ld: ../../../3rdpartylib/bpmpd_linux64.a(supnode.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a PIE object; recompile with -fPIC

Line to change:

target_link_libraries(bpmpd_caller ${BPMPD_LIBRARY})

Fix is to make static:
target_link_libraries(bpmpd_caller ${BPMPD_LIBRARY} -static)

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