[FFmpeg-devel] [PATCH] Include -fPIC also in the LDFLAGS

Cristian Morales Vega cristian at samknows.com
Fri Nov 26 14:44:15 EET 2021


The same flags should be used when linking than when compiling.
Without this actual errors have been observed when using LTO.
---
 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index e6cee21142..97c51f20a7 100755
--- a/configure
+++ b/configure
@@ -5805,6 +5805,7 @@ enable_weak_pic() {
     *)
         add_cflags -fPIC
         add_asflags -fPIC
+        add_ldflags -fPIC
         ;;
     esac
 }
-- 
2.33.1



More information about the ffmpeg-devel mailing list