From c90f98b7d5bdaecb1c497b155af5347aedb1d617 Mon Sep 17 00:00:00 2001 From: John-Mark Bell Date: Wed, 27 Jan 2021 21:08:26 +0000 Subject: Fix pkg-config file expat library linkage --- Makefile | 3 +++ Makefile.config | 3 +++ libdom.pc.in | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1c6d9ff..5690403 100644 --- a/Makefile +++ b/Makefile @@ -157,3 +157,6 @@ ifeq ($(WITH_HUBBUB_BINDING),yes) REQUIRED_PKGS := $(REQUIRED_PKGS) libhubbub endif +ifeq ($(WITH_EXPAT_BINDING),yes) + REQUIRED_LIBS := $(REQUIRED_LIBS) expat +endif diff --git a/Makefile.config b/Makefile.config index 04971d5..0aba3ff 100644 --- a/Makefile.config +++ b/Makefile.config @@ -3,6 +3,9 @@ # Build the libxml2 binding? # yes | no WITH_LIBXML_BINDING := no + +# Build the expat binding? +# yes | no WITH_EXPAT_BINDING := yes # Build the hubbub binding? diff --git a/libdom.pc.in b/libdom.pc.in index 406ed9e..86a97bb 100644 --- a/libdom.pc.in +++ b/libdom.pc.in @@ -7,5 +7,5 @@ Name: libdom Description: W3C DOM implementation Version: VERSION REQUIRED -Libs: -L${libdir} -ldom -lexpat +Libs: -L${libdir} -ldom LIBRARIES Cflags: -I${includedir} -- cgit v1.2.3