Tentative fix for the libminiupnp build problems on Windows

This commit is contained in:
Zahary Karadjov 2022-10-12 19:28:03 +03:00
parent 6b419277aa
commit 5a6f950b6d
No known key found for this signature in database
GPG Key ID: C1F42EAFF38D570F
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ nat-libs: | libminiupnpc.a libnatpmp.a
libminiupnpc.a: | sanity-checks
ifeq ($(OS), Windows_NT)
+ [ -e vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc/$@ ] || \
PATH=".:${PATH}" "$(MAKE)" -C vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -f Makefile.mingw CC=$(CC) build/$@ $(HANDLE_OUTPUT)
PATH=".:${PATH}" "$(MAKE)" -C vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -f Makefile.mingw CC=$(CC) $@ $(HANDLE_OUTPUT)
else
+ "$(MAKE)" -C vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc build/$@ $(HANDLE_OUTPUT)
endif