mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
Remove dependency on wsock32.lib in favor of ws2_32
ws2_32 is the new version of the library that should be used, as it contains the require functionality from wsock32 as well as some more (which is why some binaries were already using ws2_32). Michael Paquier, reviewed by MauMau
This commit is contained in:
@ -70,7 +70,7 @@ else
|
||||
SHLIB_LINK += $(filter -lcrypt -ldes -lcom_err -lcrypto -lk5crypto -lkrb5 -lgssapi32 -lssl -lsocket -lnsl -lresolv -lintl $(PTHREAD_LIBS), $(LIBS)) $(LDAP_LIBS_FE)
|
||||
endif
|
||||
ifeq ($(PORTNAME), win32)
|
||||
SHLIB_LINK += -lshfolder -lwsock32 -lws2_32 -lsecur32 $(filter -leay32 -lssleay32 -lcomerr32 -lkrb5_32, $(LIBS))
|
||||
SHLIB_LINK += -lshfolder -lws2_32 -lsecur32 $(filter -leay32 -lssleay32 -lcomerr32 -lkrb5_32, $(LIBS))
|
||||
endif
|
||||
|
||||
SHLIB_EXPORTS = exports.txt
|
||||
|
@ -247,9 +247,6 @@ struct MessageDLL
|
||||
{
|
||||
"winsock.dll", 0, 0
|
||||
},
|
||||
{
|
||||
"wsock32.dll", 0, 0
|
||||
},
|
||||
{
|
||||
"ws2_32.dll", 0, 0
|
||||
},
|
||||
|
@ -208,7 +208,7 @@ CPP_SBRS=.
|
||||
RSC_PROJ=/l 0x409 /fo"$(INTDIR)\libpq.res"
|
||||
|
||||
LINK32=link.exe
|
||||
LINK32_FLAGS=kernel32.lib user32.lib advapi32.lib shfolder.lib wsock32.lib ws2_32.lib secur32.lib $(SSL_LIBS) $(KFW_LIB) $(ADD_SECLIB) \
|
||||
LINK32_FLAGS=kernel32.lib user32.lib advapi32.lib shfolder.lib ws2_32.lib secur32.lib $(SSL_LIBS) $(KFW_LIB) $(ADD_SECLIB) \
|
||||
/nologo /subsystem:windows /dll $(LOPT) /incremental:no \
|
||||
/pdb:"$(OUTDIR)\libpqdll.pdb" /machine:$(CPU) \
|
||||
/out:"$(OUTDIR)\$(OUTFILENAME).dll"\
|
||||
|
Reference in New Issue
Block a user