use winsock2 instead of winsock in packages freetds and openssl (by Mark Brand)

pull/13/head
Volker Grabsch 15 years ago
parent 7760f4661e
commit 7d8ab3dff0

@ -40,7 +40,10 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
# Beware --with-gnutls broken detection.
# package uses winsock2.h, so it should link to ws2_32 instead of wsock32
$(SED) 's,wsock32,ws2_32,g' -i '$(1)'/configure
# beware --with-gnutls broken detection
cd '$(1)' && ./configure \
--prefix='$(PREFIX)/$(TARGET)' \
--host='$(TARGET)' \

@ -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 \

Loading…
Cancel
Save