Patch for pkg-config file
Niels Möller
nisse at lysator.liu.se
Thu Aug 15 19:18:00 UTC 2019
Hugh McMaster <hugh.mcmaster at 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 @@
> +prefix=@prefix@
> +exec_prefix=@exec_prefix@
> +includedir=@includedir@
> +libdir=@libdir@
> +
> +Name: @PACKAGE_NAME@ C++
> +Description: GNU Multiple Precision Arithmetic Library (C++ bindings)
> +URL: https://gmplib.org
> +Version: @PACKAGE_VERSION@
> +Requires: gmp
> +Cflags: -I${includedir}
> +Libs: -L${libdir} -lgmpxx
For gmpxx, perhaps -lgmp should be added as well, either
Libs: -L${libdir} -lgmpxx -lgmp
or
Libs: -L${libdir} -lgmpxx
Libs.private: -lgmp
?
Regards,
/Niels
--
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.
More information about the gmp-devel
mailing list