summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 139c5e211..852a8b6c1 100644
--- a/Makefile
+++ b/Makefile
@@ -325,6 +325,10 @@ endif
ifdef PROFILE
CFLAGS += -pg
LDFLAGS += -pg
+ ifdef OSX
+ # Shark (Xcode's profiling tool) needs -g to relate CPU usage to line numbers in the source code
+ BASECFLAGS += -g
+ endif
endif
CDEFS=-DWITH_REV