Module: libav
Branch: release/11
Commit: 0456e5c98cda9f1a38d6f427dd56c4f67073e050

Author:    Luca Barbato <lu_zero at gentoo.org>
Committer: Luca Barbato <[email protected]>
Date:      Fri Sep 25 08:56:25 2015 +0200

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 <[email protected]>
(cherry picked from commit 678f788fea3380e5cbbf75baac5cc0ce07a56a42)
Signed-off-by: Luca Barbato <[email protected]>

---

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

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

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to