From 2e0742902c36d8a43f6602b46b9bd58cc6822bef Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <randrianasulu@gmail.com>
Date: Tue, 24 Sep 2024 04:53:21 +0300
Subject: [PATCH] Fix linking with esound

---
 cinelerra-5.1/cinelerra/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cinelerra-5.1/cinelerra/Makefile b/cinelerra-5.1/cinelerra/Makefile
index 1cb58d50..e8eb1d5b 100644
--- a/cinelerra-5.1/cinelerra/Makefile
+++ b/cinelerra-5.1/cinelerra/Makefile
@@ -464,6 +464,9 @@ LIBS += -lgif -ltheoraenc -ltheoradec -lvorbisfile -lvorbisenc -ltiff
 ifeq ($(shell uname -o), Android)
 LIBS += -landroid-shmem -liconv ../libbthread-master/jpt.a
 endif
+ifeq ($(WANT_ESOUND),yes)
+LIBS += -lesd
+endif
 LIBS += $(shared_libs)
 LIBS += $(system_libs)
 else
-- 
2.46.1

