From 921eca3e79df93af8ee16a47994150d1f4845bfc Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 24 Feb 2023 17:06:43 -0700 Subject: [PATCH] [autotools] Fix hb-info chafa build --- util/Makefile.am | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/util/Makefile.am b/util/Makefile.am index 89715a6c9..ca6f43810 100644 --- a/util/Makefile.am +++ b/util/Makefile.am @@ -52,17 +52,18 @@ hb_shape_SOURCES = $(HB_SHAPE_sources) bin_PROGRAMS += hb-shape hb_info_SOURCES = $(HB_INFO_sources) -if HAVE_GOBJECT hb_info_LDADD = \ - $(top_builddir)/src/libharfbuzz-gobject.la \ $(LDADD) \ + $(NULL) +if HAVE_GOBJECT +hb_info_LDADD += \ + $(top_builddir)/src/libharfbuzz-gobject.la \ $(GOBJECT_LIBS) \ $(NULL) -else -hb_info_LDADD = \ - $(LDADD) \ - $(NULL) endif # HAVE_GOBJECT +if HAVE_CHAFA +hb_info_LDADD += $(CHAFA_LIBS) +endif # HAVE_CHAFA bin_PROGRAMS += hb-info hb_subset_SOURCES = $(HB_SUBSET_CLI_sources)