From e991850034a77af80c1943e12c7976d10c5351ca Mon Sep 17 00:00:00 2001 From: Siva Mahadevan Date: Mon, 20 Nov 2023 09:35:36 -0500 Subject: [PATCH] build: fix pkgconfig cflags and libdir variables --- Makefile | 5 +++-- openlibm.pc.in | 4 ---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 2435144f..976f3118 100644 --- a/Makefile +++ b/Makefile @@ -86,8 +86,9 @@ clean: $(MAKE) -C test clean openlibm.pc: openlibm.pc.in Make.inc Makefile - echo "prefix=${prefix}" > openlibm.pc - echo "version=${VERSION}" >> openlibm.pc + echo "version=${VERSION}" > openlibm.pc + echo "libdir=$(DESTDIR)$(libdir)" >> openlibm.pc + echo "includedir=$(DESTDIR)$(includedir)/openlibm" >> openlibm.pc cat openlibm.pc.in >> openlibm.pc install-static: libopenlibm.a diff --git a/openlibm.pc.in b/openlibm.pc.in index f41510b3..bfad8762 100644 --- a/openlibm.pc.in +++ b/openlibm.pc.in @@ -1,7 +1,3 @@ -exec_prefix=${prefix} -includedir=${prefix}/include -libdir=${exec_prefix}/lib - Name: openlibm Version: ${version} URL: https://github.com/JuliaMath/openlibm