]> git.ipfire.org Git - thirdparty/gcc.git/commit
configure: When host-shared, pass --with-pic to in-tree lib configs.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 25 Jun 2022 12:07:43 +0000 (13:07 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Wed, 7 Dec 2022 11:16:31 +0000 (11:16 +0000)
commit05048fc29f0e36e814281270a19762c962c1d9d2
tree18c40e56eb65abc333ecebe1de52b3b1c59316b3
parent45e09c2eb9c2bdd34ef777e06ddc9908dd0664f9
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>
ChangeLog:

* Makefile.def: Pass host_libs_picflag to host dependent library
configures.
* Makefile.in: Regenerate.
* configure: Regenerate.
* configure.ac (host_libs_picflag): New configure variable set to
'--with-pic' when building 'host_shared'.
Makefile.def
Makefile.in
configure
configure.ac