Patch for pkg-config file

Marc Glisse marc.glisse at inria.fr
Mon Aug 5 05:42:12 UTC 2019


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

> Hugh McMaster <hugh.mcmaster at 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


More information about the gmp-devel mailing list