[FFmpeg-cvslog] configure: Set the initial ldflags to match the cflags

Luca Barbato git at videolan.org
Tue Sep 29 14:27:40 CEST 2015


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Fri Sep 25 08:56:25 2015 +0200| [678f788fea3380e5cbbf75baac5cc0ce07a56a42] | committer: Luca Barbato

configure: Set the initial ldflags to match the cflags

Some gcc-based toolchain would fail to link if the abi set by the
cpuflags does not match the default.

Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=678f788fea3380e5cbbf75baac5cc0ce07a56a42
---

 configure |    1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index 852b931..381d24a 100755
--- a/configure
+++ b/configure
@@ -3461,6 +3461,7 @@ fi
 if [ "$cpu" != generic ]; then
     add_cflags  $cpuflags
     add_asflags $cpuflags
+    test "$cc_type" = "$ld_type" && add_ldflags $cpuflags
 fi
 
 # compiler sanity check



More information about the ffmpeg-cvslog mailing list