fix: include -fuse-ld for windows to handle dll's properly

This commit is contained in:
2025-04-18 18:19:54 +02:00
parent 1b36a53b24
commit 6583a9f5e0

View File

@@ -31,7 +31,7 @@ CFLAGS += -target x86_64-pc-linux-gnu
LDFLAGS += -target x86_64-pc-linux-gnu
else ifeq ($(ARCH),win-x86_64)
CFLAGS += -target x86_64-pc-windows-gnu
LDFLAGS += -target x86_64-pc-windows-gnu
LDFLAGS += -target x86_64-pc-windows-gnu -fuse-ld=lld
EXT := .exe
else
$(error you must set the ARCH environment variable to one of these: 'linux-x86_64' 'win-x86_64')