From 701f93c615673682883f120bd265fb5c89f0cdb2 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 1 Aug 2004 04:06:07 +0000 Subject: [PATCH] Added PROFILER support under Linux for gprof and FunctionCheck --- Make/makedefs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Make/makedefs b/Make/makedefs index 3ddb8ad38..b291d569b 100644 --- a/Make/makedefs +++ b/Make/makedefs @@ -337,7 +337,6 @@ ifeq ($(OS),Linux) endif endif - SHARED = -shared ifeq ($(SYSARCH),x86_64) LINKARGS = -L/usr/X11R6/lib64 @@ -359,6 +358,16 @@ ifeq ($(OS),Linux) TIFF_LIB = -ltiff GIF_LIBS = -lungif MAKEDIST = $(TOPDIR)/Make/makerpms + + ifeq ("$(PROFILER)","gprof") + DEF += -pg + endif + + ifeq ("$(PROFILER)","FunctionCheck") + DEF += -finstrument-functions + OTHER_LIBS += -lfnccheck + endif + endif #### FreeBSD specific definitions