diff options
author | Gaius Mulley <gaiusmod2@gmail.com> | 2022-12-07 19:51:10 +0000 |
---|---|---|
committer | Gaius Mulley <gaiusmod2@gmail.com> | 2022-12-07 19:51:10 +0000 |
commit | aaa673daca2fd4fd159dae2a88f2b68dfc9f58b1 (patch) | |
tree | 8d4a57d99a33cc78cac8812be9815a9def6180bf /configure.ac | |
parent | 442bcd0e9f6650c611fec17c5558637e13c0ac21 (diff) | |
parent | 952c8a1dc6235dc49ab207a7f18f63d2bc97fbc9 (diff) | |
download | gcc-aaa673daca2fd4fd159dae2a88f2b68dfc9f58b1.zip gcc-aaa673daca2fd4fd159dae2a88f2b68dfc9f58b1.tar.gz gcc-aaa673daca2fd4fd159dae2a88f2b68dfc9f58b1.tar.bz2 |
Merge branch 'master' into devel/modula-2.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 126210f..c5191ce 100644 --- a/configure.ac +++ b/configure.ac @@ -1877,8 +1877,18 @@ AC_ARG_ENABLE(host-shared, x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;; *) host_shared=no ;; esac]) + AC_SUBST(host_shared) +# 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. +host_libs_picflag= +if test "$host_shared" = "yes";then +host_libs_picflag='--with-pic' +fi +AC_SUBST(host_libs_picflag) + # By default, C and C++ are the only stage 1 languages. stage1_languages=,c, |