From 86659be668c955d7fbba1cc4b5e0249d98c76a14 Mon Sep 17 00:00:00 2001
From: Doug Torrance <dtorrance@piedmont.edu>
Date: Thu, 9 Apr 2020 09:50:13 -0400
Subject: [PATCH] wmlib: Use X flags from configure
We use the AC_PATH_XTRA macro to find all the X library paths during
build, but we weren't actually using the variables it generated for
building wmlib. Instead, we just hardcoded the linker flag "-lX11",
which may or may not actually work.
---
wmlib/Makefile.am | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wmlib/Makefile.am b/wmlib/Makefile.am
index 0816352c..8b87fdf9 100644
--- a/wmlib/Makefile.am
+++ b/wmlib/Makefile.am
@@ -8,7 +8,7 @@ include_HEADERS = WMaker.h
AM_CPPFLAGS = $(DFLAGS) @XCFLAGS@
-libWMaker_la_LIBADD = -lX11
+libWMaker_la_LIBADD = @XLFLAGS@ @XLIBS@
libWMaker_la_SOURCES = \
menu.c \
--
2.26.2