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) OBJ += $(EXOBJ)
endif endif
LIBS := -mwindows -lcomctl32 \ LIBS := -mwindows -lcomctl32 -lole32
-lopenal -lole32
ifeq ($(VNC), y) ifeq ($(VNC), y)
LIBS += $(VNCLIB) -lws2_32 LIBS += $(VNCLIB) -lws2_32
@@ -764,6 +763,9 @@ endif
ifeq ($(DINPUT), y) ifeq ($(DINPUT), y)
LIBS += -ldinput8 LIBS += -ldinput8
endif endif
ifeq ($(OPENAL), y)
LIBS += -lopenal
endif
LIBS += -static LIBS += -static