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.ac | |
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.ac')
-rw-r--r-- | libcody/configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libcody/configure.ac b/libcody/configure.ac index 7461dcf..511fe26 100644 --- a/libcody/configure.ac +++ b/libcody/configure.ac @@ -66,6 +66,12 @@ else AC_DEFINE(NMS_CHECKING, 0) fi +# Enable --enable-host-shared. +AC_ARG_ENABLE(host-shared, +[AS_HELP_STRING([--enable-host-shared], + [build host code as shared libraries])], +[PICFLAG=-fPIC], [PICFLAG=]) +AC_SUBST(PICFLAG) NMS_ENABLE_EXCEPTIONS |