Главная > C++, Linux > Position Independent Code and x86-64 libraries : technovelty

Position Independent Code and x86-64 libraries : technovelty

relocation R_X86_64_32 against `a local symbol’ can not be used when making a shared object; recompile with -fPIC

В случае ffmpeg-а фикситься следующим образом:
if (PLATFORM_BITNESS EQUAL 64)
# linking shared lib with static ffmpeg fix (relocation R_X86_64_PC32 against symbol `ff_h264_cabac_tables' can not be used when making a shared object; recompile with -fPIC)
set_target_properties(mysharedlib PROPERTIES LINK_FLAGS -Wl,-Bsymbolic)
endif()

Источник: Position Independent Code and x86-64 libraries : technovelty.

Categories: C++, Linux Tags: