diff options
| author | Luke Dashjr <[email protected]> | 2012-06-08 16:36:40 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2012-08-23 21:00:57 +0000 |
| commit | 45beb88966ff0f54606593f9cf43a5883e8acf49 (patch) | |
| tree | a53084c3e30e4051715e8dbf81abc628de6cc5fe /src/makefile.linux-mingw | |
| parent | Make IPv6 support buildtime-optional again (defaults to enabled) (diff) | |
| download | discoin-45beb88966ff0f54606593f9cf43a5883e8acf49.tar.xz discoin-45beb88966ff0f54606593f9cf43a5883e8acf49.zip | |
Bugfix: Make USE_UPNP=- work with makefile.{linux-mingw,mingw,osx} too
Diffstat (limited to 'src/makefile.linux-mingw')
| -rw-r--r-- | src/makefile.linux-mingw | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/makefile.linux-mingw b/src/makefile.linux-mingw index 174d0eee1..059504b80 100644 --- a/src/makefile.linux-mingw +++ b/src/makefile.linux-mingw @@ -35,7 +35,10 @@ CFLAGS=-O2 -w -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter $(D TESTDEFS = -DTEST_DATA_DIR=$(abspath test/data) -ifdef USE_UPNP +ifndef USE_UPNP + override USE_UPNP = - +endif +ifneq (${USE_UPNP}, -) LIBPATHS += -L"$(DEPSDIR)/miniupnpc" LIBS += -l miniupnpc -l iphlpapi DEFS += -DSTATICLIB -DUSE_UPNP=$(USE_UPNP) |