aboutsummaryrefslogtreecommitdiff
path: root/src/makefile.osx
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2012-06-08 16:36:40 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2012-08-23 21:00:57 +0000
commit45beb88966ff0f54606593f9cf43a5883e8acf49 (patch)
treea53084c3e30e4051715e8dbf81abc628de6cc5fe /src/makefile.osx
parente422bebbdc63966df984a8e5cd12d8f4c84da1b8 (diff)
downloadbitcoin-45beb88966ff0f54606593f9cf43a5883e8acf49.tar.xz
Bugfix: Make USE_UPNP=- work with makefile.{linux-mingw,mingw,osx} too
Diffstat (limited to 'src/makefile.osx')
-rw-r--r--src/makefile.osx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/makefile.osx b/src/makefile.osx
index ef193337f2..d4109b9416 100644
--- a/src/makefile.osx
+++ b/src/makefile.osx
@@ -97,7 +97,10 @@ OBJS= \
obj/walletdb.o \
obj/noui.o
-ifdef USE_UPNP
+ifndef USE_UPNP
+ override USE_UPNP = -
+endif
+ifneq (${USE_UPNP}, -)
DEFS += -DUSE_UPNP=$(USE_UPNP)
ifdef STATIC
LIBS += $(DEPSDIR)/lib/libminiupnpc.a