summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2020-12-05 23:16:00 (GMT)
committerTony Theodore <tonyt@logyst.com>2020-12-05 23:16:00 (GMT)
commit07717b7266af32f6c2e392454488168fe4e813d9 (patch)
tree77f0882e1168934dcf7ccfd2a07434cd2dcee5b3
parente42b12aae753e55f35687dd9b960be6aa81606e1 (diff)
downloadmxe-07717b7266af32f6c2e392454488168fe4e813d9.zip
mxe-07717b7266af32f6c2e392454488168fe4e813d9.tar.gz
mxe-07717b7266af32f6c2e392454488168fe4e813d9.tar.bz2
darwin: workaround shared lib preload
see #1666
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 478511a..67ac12d 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,7 @@ MXE_TARGETS := i686-w64-mingw32.static
DEFAULT_MAX_JOBS := 6
PRINTF_COL_1_WIDTH := 13
+DUMMY_PROXY := 192.0.2.0
SOURCEFORGE_MIRROR := downloads.sourceforge.net
MXE_MIRROR := https://mirror.mxe.cc/pkg
PKG_MIRROR := https://mxe-pkg.s3.amazonaws.com
@@ -684,7 +685,8 @@ ifeq ($(findstring darwin,$(BUILD)),)
PRELOAD := LD_PRELOAD='$(NONET_LIB)'
else
NONET_LIB := $(PREFIX)/$(BUILD)/lib/nonetwork.dylib
- PRELOAD := DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES='$(NONET_LIB)'
+ PRELOAD := DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES='$(NONET_LIB)' \
+ http_proxy=$(DUMMY_PROXY) https_proxy=$(DUMMY_PROXY)
NONET_CFLAGS := -arch x86_64
endif