summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2020-06-06 09:21:21 (GMT)
committerTony Theodore <tonyt@logyst.com>2020-06-06 09:21:21 (GMT)
commitf5fe0a816eb7abc1a08244be7959fdb0ab473142 (patch)
tree400570782c723e11d3c15713208aba593153d6c4
parentdd5f3d69dcedac9cc3a1a9e5e12d7079127e64ab (diff)
downloadmxe-f5fe0a816eb7abc1a08244be7959fdb0ab473142.zip
mxe-f5fe0a816eb7abc1a08244be7959fdb0ab473142.tar.gz
mxe-f5fe0a816eb7abc1a08244be7959fdb0ab473142.tar.bz2
wget: fix shared buildbuild-2020-06-06
-rw-r--r--src/wget.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wget.mk b/src/wget.mk
index 9f52f8f..33fae46 100644
--- a/src/wget.mk
+++ b/src/wget.mk
@@ -19,7 +19,8 @@ define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--with-ssl=gnutls \
- CFLAGS='-DIN6_ARE_ADDR_EQUAL=IN6_ADDR_EQUAL -D_WIN32_WINNT=0x0600 $(if $(BUILD_STATIC),-DGNUTLS_INTERNAL_BUILD,)'
+ CFLAGS='-DIN6_ARE_ADDR_EQUAL=IN6_ADDR_EQUAL -D_WIN32_WINNT=0x0600 $(if $(BUILD_STATIC),-DGNUTLS_INTERNAL_BUILD,)'\
+ LDFLAGS='$(if $(BUILD_SHARED),-Wl$(comma)--allow-multiple-definition,)'
$(MAKE) -C '$(1)/lib' -j '$(JOBS)'
$(MAKE) -C '$(1)/src' -j '$(JOBS)' install-binPROGRAMS
endef