diff options
author | David Malcolm <dmalcolm@redhat.com> | 2013-10-15 20:33:55 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2013-10-15 20:33:55 +0000 |
commit | 459260ecf8b420b029601a664cdb21c185268ecb (patch) | |
tree | b101be713129409fe69e45a4e5436995f481906a /gcc/configure | |
parent | 37ea0d87a36e36b706fb32491118e0da2a530099 (diff) | |
download | gcc-459260ecf8b420b029601a664cdb21c185268ecb.tar.gz |
Add --enable-host-shared configuration option
/
* configure.ac: Add --enable-host-shared
* configure: Regenerate.
gcc/
* Makefile.in (PICFLAG): New.
(enable_host_shared): New.
(INTERNAL_CFLAGS): Use PICFLAG.
(LIBIBERTY): Use pic build of libiberty.a if configured with
--enable-host-shared.
* configure.ac: Add --enable-host-shared, setting up new
PICFLAG variable.
* configure: Regenerate.
* doc/install.texi (--enable-shared): Add note contrasting it
with...
(--enable-host-shared): New option.
libbacktrace/
* configure.ac: Add --enable-host-shared, setting up
pre-existing PIC_FLAG variable within Makefile.am et al.
* configure: Regenerate.
libcpp/
* Makefile.in (PICFLAG): New.
(ALL_CFLAGS): Add PICFLAG.
(ALL_CXXFLAGS): Likewise.
* configure.ac: Add --enable-host-shared, setting up new
PICFLAG variable.
* configure: Regenerate.
libdecnumber/
* Makefile.in (PICFLAG): New.
(ALL_CFLAGS): Add PICFLAG.
* configure.ac: Add --enable-host-shared, setting up new
PICFLAG variable.
* configure: Regenerate.
libiberty/
* configure.ac: If --enable-host-shared, use -fPIC.
* configure: Regenerate.
zlib/
* configure.ac: Add --enable-host-shared, setting up new
PICFLAG variable.
* Makefile.am: Add PICFLAG to libz_a_CFLAGS.
* Makefile.in: Regenerate.
* configure: Regenerate.
From-SVN: r203632
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/gcc/configure b/gcc/configure index 4d12a2142d5..bedf3b14817 100755 --- a/gcc/configure +++ b/gcc/configure @@ -600,6 +600,8 @@ ac_includes_default="\ ac_subst_vars='LTLIBOBJS LIBOBJS +PICFLAG +enable_host_shared enable_plugin pluginlibs CLOOGINC @@ -921,6 +923,7 @@ enable_maintainer_mode enable_link_mutex enable_version_specific_runtime_libs enable_plugin +enable_host_shared enable_libquadmath_support with_linker_hash_style ' @@ -1636,6 +1639,7 @@ Optional Features: specify that runtime libraries should be installed in a compiler-specific directory --enable-plugin enable plugin support + --enable-host-shared build host code as shared libraries --disable-libquadmath-support disable libquadmath support for Fortran @@ -17893,7 +17897,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 17896 "configure" +#line 17900 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -17999,7 +18003,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 18002 "configure" +#line 18006 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -27700,6 +27704,18 @@ $as_echo "#define ENABLE_PLUGIN 1" >>confdefs.h 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-libquadmath-support was given. if test "${enable_libquadmath_support+set}" = set; then : enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval |