diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-15 20:33:55 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-10-15 20:33:55 +0000 |
commit | 2bd17377b2ec8b464d7ac8e4a1034987f5604e4d (patch) | |
tree | b101be713129409fe69e45a4e5436995f481906a /libbacktrace | |
parent | 0d19a5ce118b87ce8e5d7c082be3e17c4834f3c9 (diff) | |
download | gcc-2bd17377b2ec8b464d7ac8e4a1034987f5604e4d.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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203632 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libbacktrace')
-rw-r--r-- | libbacktrace/ChangeLog | 6 | ||||
-rwxr-xr-x | libbacktrace/configure | 12 | ||||
-rw-r--r-- | libbacktrace/configure.ac | 5 |
3 files changed, 21 insertions, 2 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index 39e4086b59e..9c6a8839f5e 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,9 @@ +2013-10-15 David Malcolm <dmalcolm@redhat.com> + + * configure.ac: Add --enable-host-shared, setting up + pre-existing PIC_FLAG variable within Makefile.am et al. + * configure: Regenerate. + 2013-09-20 Alan Modra <amodra@gmail.com> * configure: Regenerate. diff --git a/libbacktrace/configure b/libbacktrace/configure index e8ef1ff7c82..e6b13c0b706 100755 --- a/libbacktrace/configure +++ b/libbacktrace/configure @@ -731,6 +731,7 @@ with_gnu_ld enable_libtool_lock enable_multilib with_system_libunwind +enable_host_shared ' ac_precious_vars='build_alias host_alias @@ -1369,6 +1370,7 @@ Optional Features: optimize for fast installation [default=yes] --disable-libtool-lock avoid locking (might break parallel builds) --enable-multilib build many library versions (default) + --enable-host-shared build host code as shared libraries Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] @@ -11087,7 +11089,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11090 "configure" +#line 11092 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11193,7 +11195,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 11196 "configure" +#line 11198 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -11696,6 +11698,12 @@ PIC_FLAG= if test -n "${with_target_subdir}"; then PIC_FLAG=-fPIC fi +# Similarly, use -fPIC with --enable-host-shared: +# Check whether --enable-host-shared was given. +if test "${enable_host_shared+set}" = set; then : + enableval=$enable_host_shared; PIC_FLAG=-fPIC +fi + # Test for __sync support. diff --git a/libbacktrace/configure.ac b/libbacktrace/configure.ac index 28b2a1cd5c7..48c86203837 100644 --- a/libbacktrace/configure.ac +++ b/libbacktrace/configure.ac @@ -165,6 +165,11 @@ PIC_FLAG= if test -n "${with_target_subdir}"; then PIC_FLAG=-fPIC fi +# Similarly, use -fPIC with --enable-host-shared: +AC_ARG_ENABLE(host-shared, +[AS_HELP_STRING([--enable-host-shared], + [build host code as shared libraries])], +[PIC_FLAG=-fPIC], []) AC_SUBST(PIC_FLAG) # Test for __sync support. |