aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergei Trofimovich <[email protected]>2019-05-26 16:39:58 +0100
committerSergei Trofimovich <[email protected]>2019-05-27 09:59:27 +0100
commitc97e7e4b9d6091e90616dcc4c12423713be04bcf (patch)
treefda64cc82a071272c7a1f8ea2b345078822a8825
parent67332107e0e8421e2997c0e5154ca4dbd7f508b5 (diff)
downloadotp-c97e7e4b9d6091e90616dcc4c12423713be04bcf.tar.gz
otp-c97e7e4b9d6091e90616dcc4c12423713be04bcf.tar.bz2
otp-c97e7e4b9d6091e90616dcc4c12423713be04bcf.zip
erts: don't loop indefinitely on --enable-pgo
In https://bugs.gentoo.org/686786 gcc-9.1.0 exposed a bug in erts/configure: if compiler does not support PGO flags the configure process calls 'yes = yes' (indefinite loop) instead of 'test yes = yes'. The change does not fix gcc-9.1.0 PGO detection but fixes ./configure termination. Reported-by: Dennis Schridde Bug: https://bugs.gentoo.org/686786 Signed-off-by: Sergei Trofimovich <[email protected]>
-rw-r--r--erts/configure.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/configure.in b/erts/configure.in
index 10a006d812..3a043c940d 100644
--- a/erts/configure.in
+++ b/erts/configure.in
@@ -676,7 +676,7 @@ elif test "X$PROFILE_INSTR_GENERATE" = "Xtrue" -a "X$PROFILE_INSTR_USE" = "Xtrue
PROFILE_COMPILER=clang
AC_MSG_RESULT([yes, using -fprofile-instr-generate])
else
- if $enable_pgo = yes; then
+ if test $enable_pgo = yes; then
AC_MSG_ERROR(cannot use PGO with this compiler)
else
AC_MSG_RESULT([no])