diff --git a/Makefile b/Makefile
index d8a1a3ca..1ec1fd93 100644
--- a/Makefile
+++ b/Makefile
@@ -145,6 +145,7 @@ endif
 ifneq ($(PLATFORM),windows32)
 LDFLAGS += -flto
 CFLAGS += -flto
+LDFLAGS += -DGB_INTERNAL # For GCC's LTO
 endif
 
 else