OSDN Git Service

tests/tcg: fix non-static build
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 19 Apr 2022 09:10:15 +0000 (10:10 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 20 Apr 2022 15:04:20 +0000 (16:04 +0100)
If linking with -static fails at configure time, -static should not be used
at build time either. Do not include BUILD_STATIC in $config_target_mak.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220401141326.1244422-18-pbonzini@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220419091020.3008144-21-alex.bennee@linaro.org>

tests/tcg/configure.sh

index 75603fe..691d90a 100755 (executable)
@@ -261,7 +261,6 @@ for target in $target_list; do
                   if do_compiler "$target_compiler" $target_compiler_cflags \
                                  -o $TMPE $TMPC ; then
                       got_cross_cc=yes
-                      echo "BUILD_STATIC=y" >> $config_target_mak
                       echo "CC=$target_compiler" >> $config_target_mak
                   fi
               else