libminiupnpc.a: fix Windows build when '.' not in PATH

This commit is contained in:
Ștefan Talpalaru 2021-08-17 02:44:49 +02:00
parent 7897dfe46c
commit 6589cedffa
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# Copyright (c) 2018-2020 Status Research & Development GmbH. Licensed under # Copyright (c) 2018-2021 Status Research & Development GmbH. Licensed under
# either of: # either of:
# - Apache License, version 2.0 # - Apache License, version 2.0
# - MIT license # - MIT license
@ -114,7 +114,7 @@ nat-libs: | libminiupnpc.a libnatpmp.a
libminiupnpc.a: | sanity-checks libminiupnpc.a: | sanity-checks
ifeq ($(OS), Windows_NT) ifeq ($(OS), Windows_NT)
+ [ -e vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc/$@ ] || \ + [ -e vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc/$@ ] || \
"$(MAKE)" -C vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -f Makefile.mingw CC=$(CC) $@ $(HANDLE_OUTPUT) PATH=".:${PATH}" "$(MAKE)" -C vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc -f Makefile.mingw CC=$(CC) $@ $(HANDLE_OUTPUT)
else else
+ "$(MAKE)" -C vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc $@ $(HANDLE_OUTPUT) + "$(MAKE)" -C vendor/nim-nat-traversal/vendor/miniupnp/miniupnpc $@ $(HANDLE_OUTPUT)
endif endif