summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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