From 623b38975c0717714603d904a6cdcb8d138018b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= Date: Sun, 20 Feb 2022 01:40:27 +0100 Subject: [PATCH] Don't link OpenAL on legacy makefile if disabled --- src/win/Makefile.mingw | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/win/Makefile.mingw b/src/win/Makefile.mingw index 35b06795f..1f894f12c 100644 --- a/src/win/Makefile.mingw +++ b/src/win/Makefile.mingw @@ -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