I am attempting to statically build VLC on Ubuntu MATE 22.04.
I clone the git repo, bootstrap, configure using:
./configure --enable-static
and then build using make. The build goes for a few minutes, then errors with:
Code: Select all
/usr/bin/ld: ./.libs/libvlc_adaptive.a(libvlc_adaptive_la-QualityLevel.o): warning: relocation against `_ZTVSt9basic_iosIcSt11char_traitsIcEE@@GLIBCXX_3.4' in read-only section `.text.unlikely'
/usr/bin/ld: ./.libs/libvlc_adaptive.a(libvlc_adaptive_la-Segment.o): relocation R_X86_64_PC32 against symbol `_ZSt7nothrow@@GLIBCXX_3.4' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
Thanks in advance for any guidance.