diff options
author | Fredrik Fornwall <[email protected]> | 2018-07-23 00:59:59 +0200 |
---|---|---|
committer | Fredrik Fornwall <[email protected]> | 2018-07-23 00:59:59 +0200 |
commit | 1fc113059459fdb64f5bd4adc45fb4fbbd2f2164 (patch) | |
tree | e87d921c4d0599f6be462a140320b3487fbfbf0c /erts | |
parent | d876b9a69fda446bf9d810cca82629ccbd17bf5f (diff) | |
download | otp-1fc113059459fdb64f5bd4adc45fb4fbbd2f2164.tar.gz otp-1fc113059459fdb64f5bd4adc45fb4fbbd2f2164.tar.bz2 otp-1fc113059459fdb64f5bd4adc45fb4fbbd2f2164.zip |
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
Diffstat (limited to 'erts')
-rw-r--r-- | erts/configure.in | 3 |
1 files changed, 2 insertions, 1 deletions
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 |