Skip to content

Commit 6645eaf

Browse files
committed
Merge #12466: depends: Only use D_DARWIN_C_SOURCE when building miniupnpc on darwin
992f568 depends: Only use D_DARWIN_C_SOURCE when building miniupnpc on darwin (fanquake) Pull request description: Only use D_DARWIN_C_SOURCE when building on darwin, so we don't inadvertently introduce issues elsewhere. cc @theuni Tree-SHA512: e49a8456ba2b9925c06e62c73e139152b6d63cc5a4cee66944e41c863ca9103e98ac81a5718eceb3d0885a677fc53ece34062b02c304a05c3280e094965e856a
2 parents d77b4a7 + 992f568 commit 6645eaf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

depends/packages/miniupnpc.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ $(package)_sha256_hash=90dda8c7563ca6cd4a83e23b3c66dbbea89603a1675bfdb852897c2c9
66

77
define $(package)_set_vars
88
$(package)_build_opts=CC="$($(package)_cc)"
9-
$(package)_build_opts_darwin=OS=Darwin LIBTOOL="$($(package)_libtool)"
9+
$(package)_build_opts_darwin=LIBTOOL="$($(package)_libtool)"
1010
$(package)_build_opts_mingw32=-f Makefile.mingw
1111
$(package)_build_env+=CFLAGS="$($(package)_cflags) $($(package)_cppflags)" AR="$($(package)_ar)"
12-
$(package)_build_env+=CFLAGS=-D_DARWIN_C_SOURCE
1312
endef
1413

1514
define $(package)_preprocess_cmds

0 commit comments

Comments
 (0)