From 5c7349872d919c2d7ee8ceb055203029b59e3ded Mon Sep 17 00:00:00 2001
From: "Kirill A. Korinsky" <kirill@korins.ky>
Date: Thu, 21 Dec 2023 18:53:54 +0100
Subject: [PATCH 2/2] Completley disable gprof

---
 gcl/configure.in | 2 +-
 gcl/o/makefile   | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git gcl/configure.in gcl/configure.in
index eebbcb2d2..66ee6d4ea 100644
--- gcl/configure.in
+++ gcl/configure.in
@@ -385,7 +385,7 @@ fi
 AC_SUBST(GCL_CC)
 
 
-GPROF="gprof_objs"
+GPROF="gprof"
 AC_ARG_ENABLE([gprof],[  --enable-gprof builds gcl with -pg in CFLAGS to enable profiling with gprof],
 	      [if test "$enableval" != "yes" ; then GPROF=""; fi])
 
diff --git gcl/o/makefile gcl/o/makefile
index b0625769f..d733e0b9f 100644
--- gcl/o/makefile
+++ gcl/o/makefile
@@ -22,7 +22,7 @@ OBJS:=$(addsuffix .o,typespec alloc gbc bitop boot main eval macros lex bds fram
 	 hash array string regexpr structure toplevel file read backq print format\
 	 pathname unixfsys unixfasl error unixtime unixsys unixsave funlink  fat_string\
 	 run_process nfunlink usig usig2 utils makefun sockets gmp_wrappers clxsocket\
-	 init_pari nsocket new_init prelink sfasl gprof $(RL_OBJS))
+	 init_pari nsocket new_init prelink sfasl $(RL_OBJS))
 OBJS:=$(OBJS) $(EXTRAS)
 
 INI_FILES=$(patsubst %.o,%.ini,${OBJS})
@@ -30,7 +30,7 @@ INI_FILES:=$(filter-out new_init.ini,$(filter-out boot.ini,$(INI_FILES)))
 
 OBJECTS:=$(OBJS) $(LIBFILES) new_init.o  $(GCLIB) $(LAST_FILE)  $(FIRST_FILE) 
 
-all:  $(OBJECTS) #$(GPROF)
+all:  $(OBJECTS) $(GPROF)
 
 gprof_objs: $(addprefix ../gprof/,$(OBJECTS))
 
-- 
2.43.0

