mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-02-27 13:43:13 +00:00
makefile: make -lpq conditional based on POSTGRES env var
This commit is contained in:
parent
00525a3880
commit
c7dbec2621
7
Makefile
7
Makefile
@ -41,7 +41,12 @@ ifeq ($(detected_OS),Windows)
|
||||
NIM_PARAMS += --passL:"-Lvendor/nim-nat-traversal/vendor/miniupnp/miniupnpc"
|
||||
NIM_PARAMS += --passL:"-Lvendor/nim-nat-traversal/vendor/libnatpmp-upstream"
|
||||
|
||||
LIBS = -lws2_32 -lbcrypt -liphlpapi -luserenv -lntdll -lminiupnpc -lnatpmp -lpq
|
||||
LIBS = -lws2_32 -lbcrypt -liphlpapi -luserenv -lntdll -lminiupnpc -lnatpmp
|
||||
|
||||
ifeq ($(POSTGRES), 1)
|
||||
LIBS += -lpq
|
||||
endif
|
||||
|
||||
NIM_PARAMS += $(foreach lib,$(LIBS),--passL:"$(lib)")
|
||||
|
||||
# Allow multiple definitions when linking Rust static library with GCC
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user