From 1fc113059459fdb64f5bd4adc45fb4fbbd2f2164 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 23 Jul 2018 00:59:59 +0200 Subject: erts: Fix configure check when cross-compiling Without the action-if-cross-compiling argument to AC_RUN_IFELSE the configure steps fails with the following message when cross-compiling: configure: error: cannot run test program while cross compiling --- erts/configure.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erts/configure.in b/erts/configure.in index 9e8ffd5ec5..2563a29d08 100644 --- a/erts/configure.in +++ b/erts/configure.in @@ -581,7 +581,8 @@ if test "X$PROFILE_INSTR_GENERATE" = "Xtrue"; then PROFILE_INSTR_USE=false]) rm -f default.profdata fi], - []) + [], + [AC_MSG_NOTICE([Disabling PGO when cross-compiling])]) rm -f *.profraw CFLAGS=$saved_CFLAGS; fi -- cgit v1.2.3