summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2021-01-27 21:08:26 +0000
committerVincent Sanders <vince@kyllikki.org>2021-01-27 21:08:26 +0000
commitc90f98b7d5bdaecb1c497b155af5347aedb1d617 (patch)
treeb3c0a0ec7d1d48c2ba45b71bf4db12458dd2c4e3
parentabfd646c26f2e00484266507523c420bcb9ea7b8 (diff)
downloadlibdom-c90f98b7d5bdaecb1c497b155af5347aedb1d617.tar.gz
libdom-c90f98b7d5bdaecb1c497b155af5347aedb1d617.tar.bz2
Fix pkg-config file expat library linkage
-rw-r--r--Makefile3
-rw-r--r--Makefile.config3
-rw-r--r--libdom.pc.in2
3 files changed, 7 insertions, 1 deletions
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}