summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero at gentoo.org>2015-09-25 08:56:25 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-09-29 11:10:37 +0200
commit678f788fea3380e5cbbf75baac5cc0ce07a56a42 (patch)
tree5bcbd0a7fe060b5b9fbc1ae51b3c84c3b0ffc5aa /configure
parent1a4c5fe56008c61b0362c75bea5d446dc5b256bc (diff)
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>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure b/configure
index 852b931115..381d24a988 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