diff --git a/Makefile b/Makefile index 139c5e211d..852a8b6c15 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