From 5a6f950b6de1599d23a3f7cb026a202bd826f38b Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Wed, 12 Oct 2022 19:28:03 +0300 Subject: [PATCH] Tentative fix for the libminiupnp build problems on Windows --- makefiles/targets.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefiles/targets.mk b/makefiles/targets.mk index c4039a6..de16dbb 100644 --- a/makefiles/targets.mk +++ b/makefiles/targets.mk @@ -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