summaryrefslogtreecommitdiffstats
path: root/src/openssl.mk
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-12-02 11:31:55 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-12-02 11:31:55 (GMT)
commit7d8ab3dff0d002f7b6220fc1225472883c8fdf18 (patch)
treec4e1b0a822994dc2151363ccf989704389d0ab1b /src/openssl.mk
parent7760f4661eefca1b6a8d481a4bf05c42c1050912 (diff)
downloadmxe-7d8ab3dff0d002f7b6220fc1225472883c8fdf18.zip
mxe-7d8ab3dff0d002f7b6220fc1225472883c8fdf18.tar.gz
mxe-7d8ab3dff0d002f7b6220fc1225472883c8fdf18.tar.bz2
use winsock2 instead of winsock in packages freetds and openssl (by Mark Brand)
Diffstat (limited to 'src/openssl.mk')
-rw-r--r--src/openssl.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/openssl.mk b/src/openssl.mk
index 8aa9fbf..dd513db 100644
--- a/src/openssl.mk
+++ b/src/openssl.mk
@@ -44,6 +44,12 @@ define $(PKG)_BUILD
# http://wagner.pp.ru/~vitus/articles/openssl-mingw.html
$(SED) 's,^$$IsMK1MF=1.*,,' -i '$(1)'/Configure
$(SED) 's,static type _hide_##name,type _hide_##name,' -i '$(1)'/e_os2.h
+
+ # use winsock2 instead of winsock
+ $(SED) 's,wsock32,ws2_32,g' -i '$(1)'/Configure
+ find '$(1)' -type f -exec \
+ $(SED) 's,winsock\.h,winsock2.h,g' -i {} \;
+
cd '$(1)' && CC='$(TARGET)-gcc' ./Configure \
mingw \
zlib \