diff options
author | Nathan Sidwell <nathan@acm.org> | 2020-12-17 06:22:43 -0800 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2020-12-17 09:56:42 -0800 |
commit | d1ad55c4e08b827b4d38f763e0427096305d460d (patch) | |
tree | 2d39b9ccb9dcd77d32bd53c29c3d8bb15b23a8b8 /libcody/configure | |
parent | 217d5beaff9987a9845155fc796322b5f8bb876d (diff) | |
download | gcc-d1ad55c4e08b827b4d38f763e0427096305d460d.zip gcc-d1ad55c4e08b827b4d38f763e0427096305d460d.tar.gz gcc-d1ad55c4e08b827b4d38f763e0427096305d460d.tar.bz2 |
libcody: Allow PIC [PR 98324]
While this doesn't fix 98324, it was an omission. Cribbed code from
libcpp to build libcody as PIC.
libcody/
* configure.ac: Add --enable-host-shared.
* Makefile.in: Add FLAGPIC.
* configure: Regenerated.
Diffstat (limited to 'libcody/configure')
-rwxr-xr-x | libcody/configure | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libcody/configure b/libcody/configure index 7699e7a..b9967a1 100755 --- a/libcody/configure +++ b/libcody/configure @@ -591,6 +591,7 @@ ALOY DOXYGEN AR EXCEPTIONS +PICFLAG CONFIG_FILES SUBDIRS configure_args @@ -658,6 +659,7 @@ enable_maintainer_mode with_compiler with_bugurl enable_checking +enable_host_shared enable_exceptions ' ac_precious_vars='build_alias @@ -1290,6 +1292,7 @@ Optional Features: only specific categories of checks. Categories are: yes,no,all,none,release. Flags are: misc,valgrind or other strings + --enable-host-shared build host code as shared libraries --enable-exceptions enable exceptions & rtti Optional Packages: @@ -2752,6 +2755,15 @@ else fi +# Enable --enable-host-shared. +# Check whether --enable-host-shared was given. +if test "${enable_host_shared+set}" = set; then : + enableval=$enable_host_shared; PICFLAG=-fPIC +else + PICFLAG= +fi + + # Check whether --enable-exceptions was given. if test "${enable_exceptions+set}" = set; then : |