From b2d5d6a7f20a255a5f3c9bf539cc507afd909ce5 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Fri, 27 May 2016 20:14:21 +0200 Subject: build: Only enable symbol reduction if the compiler does proper DCE With compilers that do not support proper dead code elimination, like Sun C 5.12, linking fails due to missing references to unavailable, but also unused, symbols. Bug-Id: 895 --- configure | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/configure b/configure index 1b5e0173a7..e68cd3ed2e 100755 --- a/configure +++ b/configure @@ -4831,17 +4831,25 @@ enabled xmm_clobber_test && -Wl,--wrap,sws_scale || disable xmm_clobber_test -echo "X { local: *; };" > $TMPV -if test_ldflags -Wl,${version_script},$TMPV; then - append SHFLAGS '-Wl,${version_script},\$(SUBDIR)lib\$(NAME).ver' - check_cc < $TMPV + if test_ldflags -Wl,${version_script},$TMPV; then + append SHFLAGS '-Wl,${version_script},\$(SUBDIR)lib\$(NAME).ver' + check_cc <