From: notaz Date: Tue, 17 Oct 2023 22:44:46 +0000 (+0300) Subject: must specify cflags to link X-Git-Tag: r24l~120 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76d645bee12cfcfbaa8d364d5e335a5471acf84d;p=pcsx_rearmed.git must specify cflags to link important for -mfpu when using lto --- 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);