diff --git a/quakespasm/Quake/Makefile.w32 b/quakespasm/Quake/Makefile.w32 index db2f8047..6c65e53c 100644 --- a/quakespasm/Quake/Makefile.w32 +++ b/quakespasm/Quake/Makefile.w32 @@ -49,8 +49,10 @@ SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags) SDL_LFLAGS := $(shell $(SDL_CONFIG) --libs) SDL_LIBS := SDL_net - -COMMON_LIBS:= m opengl32 ws2_32 +# link to what SDL_net.dll already is linked to: +# win32: wsock32.dll, win64 (mingw-w64): ws2_32.dll +NET_LIBS := wsock32 +COMMON_LIBS:= m opengl32 $(NET_LIBS) LIBS := $(patsubst %,-l%,$(COMMON_LIBS) $(SDL_LIBS)) diff --git a/quakespasm/Quake/Makefile.w64 b/quakespasm/Quake/Makefile.w64 index f3a34412..55bda920 100644 --- a/quakespasm/Quake/Makefile.w64 +++ b/quakespasm/Quake/Makefile.w64 @@ -49,8 +49,10 @@ SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags) SDL_LFLAGS := $(shell $(SDL_CONFIG) --libs) SDL_LIBS := SDL_net - -COMMON_LIBS:= m opengl32 ws2_32 +# link to what SDL_net.dll already is linked to: +# win32: wsock32.dll, win64 (mingw-w64): ws2_32.dll +NET_LIBS := ws2_32 +COMMON_LIBS:= m opengl32 $(NET_LIBS) LIBS := $(patsubst %,-l%,$(COMMON_LIBS) $(SDL_LIBS))