From 2d081fc7e11bdd753b86a39c9c6552cf9e8e9af0 Mon Sep 17 00:00:00 2001 From: rexy712 Date: Tue, 29 Sep 2020 13:55:44 -0700 Subject: [PATCH] Fix linking on non-linux posix systems --- makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 0931b25..564d2de 100644 --- a/makefile +++ b/makefile @@ -41,7 +41,10 @@ ifneq ($(WINDOWS),1) #*nix settings CC::=gcc CXX::=g++ - LDLIBS::=-lglfw -lglad -ldl -lm -lportaudio -lasound -lsndfile -lpthread + LDLIBS::=-lglfw -lglad -ldl -lm -lportaudio -lsndfile -lpthread +ifeq ($(shell uname -s),Linux) + LDLIBS+=-lasound +endif LDFLAGS::= DEBUG_LDLIBS::= DEBUG_LDFLAGS::=