diff options
author | fanquake <fanquake@gmail.com> | 2021-03-03 21:19:09 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-03-04 12:34:46 +0800 |
commit | 7af25024e9563241c72797d4eeabdf660e548f53 (patch) | |
tree | 93da9031608d7ed67eb7fe43cfba022afb3497b3 /depends/packages/libnatpmp.mk | |
parent | ee35745754075d862e1855c77b20a09b260cce75 (diff) | |
download | bitcoin-7af25024e9563241c72797d4eeabdf660e548f53.tar.xz |
build: compile libnatpmp with -DNATPMP_STATICLIB on Windows
This fixes linking issues and mirrors what we do with miniupnpc.
Diffstat (limited to 'depends/packages/libnatpmp.mk')
-rw-r--r-- | depends/packages/libnatpmp.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/depends/packages/libnatpmp.mk b/depends/packages/libnatpmp.mk index db222da730..cdcf8c0bf2 100644 --- a/depends/packages/libnatpmp.mk +++ b/depends/packages/libnatpmp.mk @@ -6,6 +6,7 @@ $(package)_sha256_hash=543b460aab26acf91e11d15e17d8798f845304199eea2d76c2f444ec7 define $(package)_set_vars $(package)_build_opts=CC="$($(package)_cc)" + $(package)_build_opts_mingw32=CPPFLAGS=-DNATPMP_STATICLIB $(package)_build_opts_darwin=LIBTOOL="$($(package)_libtool)" $(package)_build_env+=CFLAGS="$($(package)_cflags) $($(package)_cppflags)" AR="$($(package)_ar)" endef |