configure: When host-shared, pass --with-pic to in-tree lib configs.
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 7 Aug 2023 11:07:11 +0000 (13:07 +0200)
committerAlan Modra <amodra@gmail.com>
Sat, 12 Aug 2023 00:28:23 +0000 (09:58 +0930)
commit947edb094ece682e6642c497a871749e8c12d5a5
tree6515d45379570342b144461b9c78c38d5bb6bd7b
parent6d80d4cf716e4d8d066cba03915cc794dde65110
configure: When host-shared, pass --with-pic to in-tree lib configs.

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.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
* Makefile.def: Pass host_libs_picflag to host dependent library
configures.
* configure.ac (host_libs_picflag): New configure variable set to
'--with-pic' when building 'host_shared'.
Makefile.def
configure.ac