Ensure library is included in correct order

It looks to me that the correct way to address this build wrinkle is
simply to add the win32 functions to the libn2n when building a win32
output, then there is no additional magic library juggling required for
the win32 case
This commit is contained in:
Hamish Coleman 2023-07-02 17:11:12 +01:00
parent 1e8a085f1e
commit 4d2e92ac81

View File

@ -136,12 +136,13 @@ LINT_CCODE=\
tools/tests-transform.c \
tools/tests-wire.c \
LDLIBS+=-ln2n
ifneq (,$(findstring mingw,$(CONFIG_HOST_OS)))
LDLIBS+=$(abspath win32/n2n_win32.a)
endif
LDLIBS+=$(LDLIBS_EXTRA)
ifneq (,$(findstring mingw,$(CONFIG_HOST_OS)))
LDLIBS+=$(abspath win32/n2n_win32.a)
N2N_DEPS+=win32/n2n_win32.a
SUBDIRS+=win32
endif