Open albertz opened 10 years ago
"-Bstatic" option instead of "-static" solved the issue
thanks to amnonbb, i succeed.
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: ./libvpx.a(vp9_subpel_variance.asm.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
./libvpx.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
src/ffmpeg-static/build/libvpx-v1.3.0/libs.mk:480: recipe for target 'test_libvpx' failed
make[1]: *** [test_libvpx] Error 1
Makefile:17: recipe for target '.DEFAULT' failed
make: *** [.DEFAULT] Error 2
@fbm-static Maybe try with -fPIC
?
I've got similar errors like fbm-static and from what I've read, static "linking" isn't possible on Linux unless the base libraries are also compiled with -fPIC
, building ffmpeg with it doesn't resolve the issue.
Maybe we need a simple feature-detection script to guide these flags. The start of autohell :)
Totally, but as long as it "just works" would be great. Sorta related, I hope to get some traction over on ask ubuntu http://askubuntu.com/questions/784018/building-static-ffmpeg-libraries-on-amd64-where-libc-isnt-compiled-with-fpic
config.log: