Skip to content

Commit ab9ba06

Browse files
committed
fix pkgconfig creation in makefile.shared
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
1 parent ed6ad7d commit ab9ba06

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

makefile.shared

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ install: $(LIBNAME)
6565
install -d $(DESTDIR)$(INCPATH)
6666
$(LIBTOOL) --mode=install install -m 644 $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LIBNAME)
6767
install -m 644 $(HEADERS_PUB) $(DESTDIR)$(INCPATH)
68-
sed -e 's,^prefix=.*,prefix=$(PREFIX),' -e 's,^Version:.*,Version: $(VERSION_PC),' libtommath.pc.in > libtommath.pc
68+
sed -e 's,^prefix=.*,prefix=$(PREFIX),' -e 's,^Version:.*,Version: $(VERSION_PC),' -e 's,@CMAKE_INSTALL_LIBDIR@,lib,' \
69+
-e 's,@CMAKE_INSTALL_INCLUDEDIR@/@PROJECT_NAME@,include/tommath,' libtommath.pc.in > libtommath.pc
6970
install -d $(DESTDIR)$(LIBPATH)/pkgconfig
7071
install -m 644 libtommath.pc $(DESTDIR)$(LIBPATH)/pkgconfig/
7172

0 commit comments

Comments
 (0)