Don't link OpenAL on legacy makefile if disabled

This commit is contained in:
David Hrdlička
2022-02-20 01:40:27 +01:00
parent 572a08b478
commit 623b38975c

View File

@@ -746,8 +746,7 @@ ifdef EXOBJ
OBJ += $(EXOBJ)
endif
LIBS := -mwindows -lcomctl32 \
-lopenal -lole32
LIBS := -mwindows -lcomctl32 -lole32
ifeq ($(VNC), y)
LIBS += $(VNCLIB) -lws2_32
@@ -762,7 +761,10 @@ ifeq ($(ARM64), y)
LIBS += -lgcc
endif
ifeq ($(DINPUT), y)
LIBS += -ldinput8
LIBS += -ldinput8
endif
ifeq ($(OPENAL), y)
LIBS += -lopenal
endif
LIBS += -static