From 76d645bee12cfcfbaa8d364d5e335a5471acf84d Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 18 Oct 2023 01:44:46 +0300 Subject: [PATCH] must specify cflags to link important for -mfpu when using lto --- Makefile | 2 +- frontend/plugin.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 864565e5..642a4c66 100644 --- a/Makefile +++ b/Makefile @@ -411,7 +411,7 @@ $(TARGET): $(OBJS) ifeq ($(STATIC_LINKING), 1) $(AR) rcs $@ $(OBJS) else - $(CC_LINK) -o $@ $^ $(LDFLAGS) $(LDLIBS) $(EXTRA_LDFLAGS) + $(CC_LINK) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LDLIBS) $(EXTRA_LDFLAGS) endif clean: $(PLAT_CLEAN) clean_plugins diff --git a/frontend/plugin.c b/frontend/plugin.c index e9dbcacb..3683b500 100644 --- a/frontend/plugin.c +++ b/frontend/plugin.c @@ -135,7 +135,7 @@ extern void GPUwriteDataMem(uint32_t *, int); extern uint32_t GPUreadStatus(void); extern uint32_t GPUreadData(void); extern void GPUreadDataMem(uint32_t *, int); -extern long GPUdmaChain(uint32_t *,uint32_t); +extern long GPUdmaChain(uint32_t *, uint32_t, uint32_t *); extern void GPUupdateLace(void); extern long GPUfreeze(uint32_t, void *); extern void GPUvBlank(int, int); -- 2.39.5