From d65312b7a0efcca01c60a5d3f5e2043ab14b1932 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <guest@slax.example.net>
Date: Fri, 15 Apr 2022 18:35:56 +0300
Subject: [PATCH 1/3] fix x11 linking in libzmpeg3 on my system

---
 cinelerra-5.1/libzmpeg3/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cinelerra-5.1/libzmpeg3/Makefile b/cinelerra-5.1/libzmpeg3/Makefile
index b92a33b..d854fa9 100644
--- a/cinelerra-5.1/libzmpeg3/Makefile
+++ b/cinelerra-5.1/libzmpeg3/Makefile
@@ -89,7 +89,7 @@ endif
 LIBS += $(lib_a52dec) $(lib_djbfft) $(lib_libbthread)
 
 ifeq ($(DYNAMIC_FONTS), 1)
-LIBS += -lX11
+LIBS += -lX11 `pkg-config --libs x11`
 else
 CFLAGS += -DBUILTIN_FONT_DATA 
 OBJS += $(OBJDIR)/xfont1.o
-- 
2.14.5

