From 0a50358e3da55eeed6aa2738523a763831f7d3d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Van=C4=9Bk?= Date: Mon, 1 Aug 2022 15:54:13 +0200 Subject: [PATCH] Install pkgconfig file to $(libdir) Pkgconfig file needs to be installed in $(libdir) rather than $(datadir), otherwise it is not possible to support multilib systems properly, e.g. 32 and 64 bits library on one system, where location must differ /usr/lib/pkgconfig for 32bit and /usr/lib64/pkgconfig for 64bit, for example. --- Makefile.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 8938230a..b7539f70 100644 --- a/Makefile.in +++ b/Makefile.in @@ -43,9 +43,9 @@ clean: rm -f libjsonparser.$(SO_EXT) libjsonparser.a json.o install-shared: libjsonparser.$(SO_EXT) - @echo Installing pkgconfig module: $(datadir)/pkgconfig/json-parser.pc - @install -d $(datadir)/pkgconfig/ || true - @install -m 0644 json-parser.pc $(datadir)/pkgconfig/json-parser.pc + @echo Installing pkgconfig module: $(libdir)/pkgconfig/json-parser.pc + @install -d $(libdir)/pkgconfig/ || true + @install -m 0644 json-parser.pc $(libdir)/pkgconfig/json-parser.pc @echo Installing shared library: $(libdir)/libjsonparser.$(SO_EXT) @install -d $(libdir) || true @install -m 0755 libjsonparser.$(SO_EXT) $(libdir)/$(REAL_NAME)