Re: [PATCH] configure: When host-shared, pass --with-pic to in-tree lib configs.

2022-07-01 Thread Richard Biener via Gcc-patches
On Sun, Jun 26, 2022 at 5:28 PM Iain Sandoe via Gcc-patches wrote: > > If we are building PIC/PIE host executables, and we are building dependent > libs (e.g. GMP) in-tree those libs need to be configured to generate PIC code. > > At present, if an --enable-host-shared build is attempted on ELF pl

[PATCH] configure: When host-shared, pass --with-pic to in-tree lib configs.

2022-06-26 Thread Iain Sandoe via Gcc-patches
If we are building PIC/PIE host executables, and we are building dependent libs (e.g. GMP) in-tree those libs need to be configured to generate PIC code. At present, if an --enable-host-shared build is attempted on ELF platforms, with in-tree dependents, the build will fail with incompatible reloc