mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-02 22:11:22 +00:00
Makefile.w32, Makefile.w64: make sure to link to the correct winsock
library, which must be what SDL_net.dll is already linked to, which is wsock32.dll for win32, and ws2_32.dll for win64 (mingw-w64.) git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@42 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
afe632313d
commit
9d9354165c
2 changed files with 8 additions and 4 deletions
|
@ -49,8 +49,10 @@ SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)
|
||||||
SDL_LFLAGS := $(shell $(SDL_CONFIG) --libs)
|
SDL_LFLAGS := $(shell $(SDL_CONFIG) --libs)
|
||||||
|
|
||||||
SDL_LIBS := SDL_net
|
SDL_LIBS := SDL_net
|
||||||
|
# link to what SDL_net.dll already is linked to:
|
||||||
COMMON_LIBS:= m opengl32 ws2_32
|
# 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))
|
LIBS := $(patsubst %,-l%,$(COMMON_LIBS) $(SDL_LIBS))
|
||||||
|
|
||||||
|
|
|
@ -49,8 +49,10 @@ SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)
|
||||||
SDL_LFLAGS := $(shell $(SDL_CONFIG) --libs)
|
SDL_LFLAGS := $(shell $(SDL_CONFIG) --libs)
|
||||||
|
|
||||||
SDL_LIBS := SDL_net
|
SDL_LIBS := SDL_net
|
||||||
|
# link to what SDL_net.dll already is linked to:
|
||||||
COMMON_LIBS:= m opengl32 ws2_32
|
# 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))
|
LIBS := $(patsubst %,-l%,$(COMMON_LIBS) $(SDL_LIBS))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue