build, add CFLAGS to linking for -flto
authorkub <derkub@gmail.com>
Tue, 8 Feb 2022 20:56:01 +0000 (20:56 +0000)
committerkub <derkub@gmail.com>
Tue, 8 Feb 2022 20:56:01 +0000 (20:56 +0000)
Makefile

index 3821ad8..94446a9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -314,7 +314,7 @@ $(TARGET): $(OBJS)
 ifeq ($(STATIC_LINKING), 1)
        $(AR) rcs $@ $^
 else
-       $(LD) $(LINKOUT)$@ $^ $(LDFLAGS) $(LDLIBS)
+       $(LD) $(LINKOUT)$@ $^ $(CFLAGS) $(LDFLAGS) $(LDLIBS)
 endif
 
 ifeq "$(PLATFORM)" "psp"