Fix Windows build. On Windows OpenAL32.dll must be opened at runtime.
This commit is contained in:
parent
5323873476
commit
6d7d15af30
10
Makefile
10
Makefile
|
@ -44,10 +44,10 @@ WITH_OGG:=yes
|
||||||
# installed
|
# installed
|
||||||
WITH_OPENAL:=yes
|
WITH_OPENAL:=yes
|
||||||
|
|
||||||
# Enables optional runtime loading of OpenAL (dlopen
|
# Enables optional runtime loading of OpenAL (dlopen or
|
||||||
# or similar).
|
# similar). If set to "no", the library is linked in at
|
||||||
# If set to "no", the library is linked in at compile
|
# compile time in the normal way. On Windows this option
|
||||||
# time in the normal way.
|
# is ignored, OpenAL is always loaded at runtime.
|
||||||
DLOPEN_OPENAL:=yes
|
DLOPEN_OPENAL:=yes
|
||||||
|
|
||||||
# Use SDL2 instead of SDL1.2. Disables CD audio support,
|
# Use SDL2 instead of SDL1.2. Disables CD audio support,
|
||||||
|
@ -370,7 +370,7 @@ release/quake2.exe : LDFLAGS += -lvorbisfile -lvorbis -logg
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(WITH_OPENAL),yes)
|
ifeq ($(WITH_OPENAL),yes)
|
||||||
release/quake2.exe : CFLAGS += -DUSE_OPENAL -DDEFAULT_OPENAL_DRIVER='"openal32.dll"'
|
release/quake2.exe : CFLAGS += -DUSE_OPENAL -DDEFAULT_OPENAL_DRIVER='"openal32.dll"' -DDLOPEN_OPENAL
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(WITH_ZIP),yes)
|
ifeq ($(WITH_ZIP),yes)
|
||||||
|
|
Loading…
Reference in New Issue