On Thu, 15 Aug 2019, Niels Möller wrote:

Hugh McMaster <hugh.mcmas...@outlook.com> writes:

Generate and install a pkg-config file for the gmp library

This patch looks good to me. I take it you have tested that make install
does install a working gmp.pc in the right place? I'm not very familiar
with what automake does.

Generate and install a pkg-config file for the gmpxx library
diff -r 93c8fcc2cab4 -r 4b0e794dd777 gmpxx.pc.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gmpxx.pc.in       Thu Aug 08 23:48:03 2019 +1000
@@ -0,0 +1,12 @@
+Description: GNU Multiple Precision Arithmetic Library (C++ bindings)
+URL: https://gmplib.org
+Requires: gmp
+Cflags: -I${includedir}
+Libs: -L${libdir} -lgmpxx

For gmpxx, perhaps -lgmp should be added as well, either

 Libs: -L${libdir} -lgmpxx -lgmp


 Libs: -L${libdir} -lgmpxx
 Libs.private: -lgmp


I assume that "Requires: gmp" already handles that.

Marc Glisse
gmp-devel mailing list

Reply via email to