summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b9c61ad..ee55219 100644
--- a/Makefile
+++ b/Makefile
@@ -82,8 +82,7 @@ CFLAGS+= -DZ80_LOG_ADDRESS
endif
ifdef PROFILE
-CFLAGS+= -pg
-LDFLAGS+= -pg
+LDFLAGS+= -Wl,--no-as-needed -lprofiler -Wl,--as-needed
endif
ifdef NOGL
CFLAGS+= -DDISABLE_OPENGL