[PATCH] Add --with-static-mpfr-gmp for statically linking MPFR/GMP libs

Jones Syue 薛懷宗 jonessyue@qnap.com
Tue May 28 02:45:09 GMT 2024


> Since this touches the toplevel configure, it should also be sent to 
> binutils@ and gcc-patches@ (gcc source base is technically the main 
> version of it and it is shared between all 3).
> Second this only seems to work with gnu ld. It won't work with Mac os ld 
> or Solaris ld.
Thank you Andrew for kind feedback!
I will go back to wiki first about these related mailing lists.
Yes im working on cross-compiling for linux specific target machine and gnu
ld linker is preferred by default; will find out otherway for compatibility
with various systems likd macOS ld or Solaris ld.

> Also for gcc, the additional, mpc should be linked statically if either 
> are linked that way.

Sure will go back to read mpc extensions based on mpfr/gmp.

> It might be just better to place the sources of gmp/mpfr to the toplevel 
> src directory to get them statically linking without worry about any 
> extra options. Since that works today.

This sounds great! will try to put them on toplevel src directory tree.

--

Regards,
Jones Syue | 薛懷宗
QNAP Systems, Inc.


More information about the Gdb-patches mailing list