-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ffmpeg] build without PIC #31185
Comments
This issue could be reproduced with the latest vcpkg 2023-04-07-bedcba5172f5e4b91caac660ab7afe92c27a9895.
|
It still relevant. |
Given the recent OpenSSL experience, I would suspect some (upstream) assembler code to not be relocatable. PIC compiler flags change asm generation from upstream C code, but they won't affect what is already written in assembler. You can build with PIC flags but still get binaries which are nor relocatable. |
Hitting rtabmap, #37651. |
Hey people, I'm still facing the relocation issue with ffmpeg (specifically libavcodec) . Any solution ? |
Not a port bug, although reported repeatedly. Other than the the message suggests, the compiler is run with The error occurs due to wrong usage: |
Hi @dg0yt Thanks a lot. This helped resolve my error |
@dg0yt Where do you put the |
On the consumer. |
wsl2 ubuntu 22.04
gcc
tested on ffmpeg 5.1.2.
When I run the command:
It has the line
R_X86_64_32
that tell it compile without PIC even with the flag--enable-pic
that already set on the port.When I compile with shared the output of the command:
Tested on ffmpeg 5.1.2.
Not sure how to fix it.
Not sure if the same happen on the ffmpeg 6.0.
The text was updated successfully, but these errors were encountered: