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:
committed by
Luca Barbato
parent
1a4c5fe560
commit
678f788fea
1
configure
vendored
1
configure
vendored
@@ -3461,6 +3461,7 @@ fi
|
|||||||
if [ "$cpu" != generic ]; then
|
if [ "$cpu" != generic ]; then
|
||||||
add_cflags $cpuflags
|
add_cflags $cpuflags
|
||||||
add_asflags $cpuflags
|
add_asflags $cpuflags
|
||||||
|
test "$cc_type" = "$ld_type" && add_ldflags $cpuflags
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# compiler sanity check
|
# compiler sanity check
|
||||||
|
Reference in New Issue
Block a user