On Mon, 5 Aug 2019, Niels Möller wrote:

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

--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/gmp.pc.in Sun Aug 04 22:35:15 2019 +1000

Should there also be a gmpxx.pc ?

@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+includedir=@includedir@
+libdir=@libdir@
+
+Name: @PACKAGE_NAME@
+Description: GNU Multiple Precision Arithmetic Library
+URL: https://gmplib.org
+Version: @PACKAGE_VERSION@
+Cflags: -I${includedir}
+Libs: -L${libdir} -lgmp
+Libs.private: @LIBM@

@LIBM@ shouldn't be needed. I don't know why configure checks for it,
from comments, possibly libtool-related.

IIRC -lm is used in the build, the tuning, the tests, the demos, but not in the library itself.

(the use in tests/cxx looks bad, it does -lm instead of using the result of autoconf)

--
Marc Glisse
_______________________________________________
gmp-devel mailing list
gmp-devel@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-devel

Reply via email to