Statically linking with libgmp and libmpfr
Vahedi, Shahab
Shahab.Vahedi@amd.com
Fri May 16 08:55:43 GMT 2025
I've managed to _work around_ this by populating a "static only" lib dir
and pointing the "configure" to it:
$ mkdir -p /only/static/libs
$ cp /usr/lib/libgmp.a /only/static/libs
$ cp /usr/lib/libmpfr.a /only/static/libs
$ tree /only/static/libs
/only/static/libs
|-- libgmp.a
`-- libmpfr.a
$ configure ... \
--with-gmp-lib=/only/static/libs \
--with-mpfr-lib=/only/static/libs
$ make
$ libtree -vv gdb/gdb
[ no signs of gmp or mpfr ]
I still am interested in an out-of-the-box approach, if any, like GDB <= 13.2.
Cheers,
Shahab
More information about the Gdb
mailing list