It does not completely recover PGO support but
at least stops ./configure from looping indefinitely.
Reported-by: Dennis Schridde
Bug: https://bugs.gentoo.org/686786
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
"${FILESDIR}/${PN}-add-epmd-pid-file-creation-for-openrc.patch"
"${FILESDIR}/${PN}-custom-autoconf.patch"
"${FILESDIR}/${PN}-21.3-lto.patch"
+ "${FILESDIR}/${PN}-21.3-pgo-loop.patch"
)
SITEFILE=50"${PN}"-gentoo.el
--- /dev/null
+https://bugs.gentoo.org/686786
+
+--- a/erts/configure.in
++++ b/erts/configure.in
+@@ -682,7 +682,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])