Commit 678f788f authored by Luca Barbato's avatar Luca Barbato Committed by 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: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 1a4c5fe5
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment