diff options
author | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-27 14:08:19 +0000 |
---|---|---|
committer | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-08-27 14:08:19 +0000 |
commit | d0724418ec3cca82bc779a1773ce1f64e874a2cc (patch) | |
tree | 5a25e11b01f3ce405e23d1f4f1b1c08c2d07e555 /libbacktrace/configure.ac | |
parent | e76fe21e25c043fc93e05cab70f0d83920d1e6b7 (diff) | |
download | gcc-d0724418ec3cca82bc779a1773ce1f64e874a2cc.tar.gz |
* configure.ac: Remove [disable-shared] argument to LT_INIT.
Remove setting PIC_FLAG when building as target library.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227261 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libbacktrace/configure.ac')
-rw-r--r-- | libbacktrace/configure.ac | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/libbacktrace/configure.ac b/libbacktrace/configure.ac index feca006974b..01284bd82cb 100644 --- a/libbacktrace/configure.ac +++ b/libbacktrace/configure.ac @@ -79,7 +79,7 @@ case "$AWK" in "") AC_MSG_ERROR([can't build without awk]) ;; esac -LT_INIT([disable-shared]) +LT_INIT AM_PROG_LIBTOOL backtrace_supported=yes @@ -161,22 +161,11 @@ else fi fi -# When building as a target library, shared libraries may want to link -# this in. We don't want to provide another shared library to -# complicate dependencies. Instead, we just compile with -fPIC, if -# the target supports compiling with that option. -PIC_FLAG= -if test -n "${with_target_subdir}"; then - ac_save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -fPIC" - AC_TRY_COMPILE([], [], [PIC_FLAG=-fPIC]) - CFLAGS="$ac_save_CFLAGS" -fi -# Similarly, use -fPIC with --enable-host-shared: +# Enable --enable-host-shared. AC_ARG_ENABLE(host-shared, [AS_HELP_STRING([--enable-host-shared], [build host code as shared libraries])], -[PIC_FLAG=-fPIC], []) +[PIC_FLAG=-fPIC], [PIC_FLAG=]) AC_SUBST(PIC_FLAG) # Test for __sync support. |