Fix Windows build. On Windows OpenAL32.dll must be opened at runtime.

This commit is contained in:
Yamagi Burmeister 2016-07-05 19:17:06 +02:00
parent 5323873476
commit 6d7d15af30
1 changed files with 5 additions and 5 deletions

View File

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