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@gentoo.org>
This commit is contained in:
Luca Barbato 2015-09-25 08:56:25 +02:00 committed by Luca Barbato
parent 1a4c5fe560
commit 678f788fea

1
configure vendored
View File

@ -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