mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-02-28 06:03:39 +00:00
makefile: allow multiple definitions flag for Nim
Rust includes compiler_builtins crate in rln.lib for low-level ops GCC (mingw-winlibs) also provides its own implementation of these same builtins Both are being linked together → conflict
This commit is contained in:
parent
da856c8216
commit
0e5ce5515d
3
Makefile
3
Makefile
@ -44,6 +44,9 @@ ifeq ($(detected_OS),Windows)
|
||||
LIBS = -lws2_32 -lbcrypt -liphlpapi -luserenv -lntdll -lminiupnpc -lnatpmp -lpq
|
||||
NIM_PARAMS += $(foreach lib,$(LIBS),--passL:"$(lib)")
|
||||
|
||||
# Allow multiple definitions when linking Rust static library with GCC
|
||||
NIM_PARAMS += --passL:"-Wl,--allow-multiple-definition"
|
||||
|
||||
export PATH := /c/msys64/usr/bin:/c/msys64/mingw64/bin:/c/msys64/usr/lib:/c/msys64/mingw64/lib:$(PATH)
|
||||
|
||||
endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user