Skip to content

Commit acf58d2

Browse files
authored
build: fix pkgconfig cflags and libdir variables (#284)
1 parent a010123 commit acf58d2

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ clean:
8686
$(MAKE) -C test clean
8787

8888
openlibm.pc: openlibm.pc.in Make.inc Makefile
89-
echo "prefix=${prefix}" > openlibm.pc
90-
echo "version=${VERSION}" >> openlibm.pc
89+
echo "version=${VERSION}" > openlibm.pc
90+
echo "libdir=$(DESTDIR)$(libdir)" >> openlibm.pc
91+
echo "includedir=$(DESTDIR)$(includedir)/openlibm" >> openlibm.pc
9192
cat openlibm.pc.in >> openlibm.pc
9293

9394
install-static: libopenlibm.a

openlibm.pc.in

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
exec_prefix=${prefix}
2-
includedir=${prefix}/include
3-
libdir=${exec_prefix}/lib
4-
51
Name: openlibm
62
Version: ${version}
73
URL: https://github.com/JuliaMath/openlibm

0 commit comments

Comments
 (0)