From e2bd77215300986fcf46f5202abe08833bcf6b4d Mon Sep 17 00:00:00 2001
From: "Kirill A. Korinsky" <kirill@korins.ky>
Date: Thu, 21 Dec 2023 17:01:47 +0100
Subject: [PATCH 1/5] Disable gprof on macOS by default

---
 gcl/configure    | 1 +
 gcl/configure.in | 1 +
 2 files changed, 2 insertions(+)

diff --git a/gcl/configure b/gcl/configure
index 74100ec18..15573a0c6 100755
--- a/gcl/configure
+++ b/gcl/configure
@@ -5742,6 +5742,7 @@ if test "$GPROF" != "" ; then
 printf %s "checking working gprof... " >&6; }
    case $use in
        powerpc*) if test "$host_cpu" = "powerpc64le" ; then GPROF=""; fi;;
+       *macos*) GPROF="";;#macOS uses clang by default which doesn't support gprof for years
        s390*) GPROF="";;#mcount smashes float args in make_shortfloat 20180313
        sh4*)  GPROF="";;
        m68k*) GPROF="";;
diff --git a/gcl/configure.in b/gcl/configure.in
index 3cc62a06c..eabf55659 100644
--- a/gcl/configure.in
+++ b/gcl/configure.in
@@ -391,6 +391,7 @@ if test "$GPROF" != "" ; then
    AC_MSG_CHECKING([working gprof])
    case $use in
        powerpc*) if test "$host_cpu" = "powerpc64le" ; then GPROF=""; fi;;
+       *macos*) GPROF="";;#macOS uses clang by default which doesn't support gprof for years
        s390*) GPROF="";;#mcount smashes float args in make_shortfloat 20180313
        sh4*)  GPROF="";;
        m68k*) GPROF="";;
-- 
2.43.0

