diff mbox series

[FFmpeg-devel] configure: Include -fPIC also in the LDFLAGS

Message ID 20211126131250.159618-1-cristian@samknows.com
State New
Headers show
Series [FFmpeg-devel] configure: Include -fPIC also in the LDFLAGS | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Cristian Morales Vega Nov. 26, 2021, 1:12 p.m. UTC
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 mbox series

Patch

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
 }