diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2014-06-13 16:30:46 +0200 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gcc.gnu.org> | 2014-06-13 16:30:46 +0200 |
commit | 2a7a8388e2e4b7caf08cdd67f1bcebbc49ac3133 (patch) | |
tree | 551e04841da61c4b5f65c73d0dcc899ddd993371 /lto-plugin/configure | |
parent | beb683ab93023d2e80edd30dd8630fb7ae89aae0 (diff) | |
download | gcc-2a7a8388e2e4b7caf08cdd67f1bcebbc49ac3133.zip gcc-2a7a8388e2e4b7caf08cdd67f1bcebbc49ac3133.tar.gz gcc-2a7a8388e2e4b7caf08cdd67f1bcebbc49ac3133.tar.bz2 |
Allow overriding the libiberty used for building the LTO plugin.
lto-plugin/
* configure.ac (--with-libiberty): New configure option.
* configure: Regenerate.
* Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
variables.
(liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
(liblto_plugin_la_DEPENDENCIES): Use them.
* Makefile.in: Regenerate.
From-SVN: r211642
Diffstat (limited to 'lto-plugin/configure')
-rwxr-xr-x | lto-plugin/configure | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/lto-plugin/configure b/lto-plugin/configure index a579b99..6c36dfb 100755 --- a/lto-plugin/configure +++ b/lto-plugin/configure @@ -640,6 +640,7 @@ CPPFLAGS LDFLAGS CFLAGS CC +with_libiberty MAINT MAINTAINER_MODE_FALSE MAINTAINER_MODE_TRUE @@ -725,6 +726,7 @@ ac_user_opts=' enable_option_checking with_build_libsubdir enable_maintainer_mode +with_libiberty enable_dependency_tracking enable_largefile enable_shared @@ -1378,6 +1380,8 @@ Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-build-libsubdir=DIR Directory where to find libraries for build system + --with-libiberty=PATH specify the directory where to find libiberty + [../libiberty] --with-pic try to use only PIC/non-PIC objects [default=use both] --with-gnu-ld assume the C compiler uses GNU ld [default=no] @@ -2889,6 +2893,15 @@ fi MAINT=$MAINTAINER_MODE_TRUE + +# Check whether --with-libiberty was given. +if test "${with_libiberty+set}" = set; then : + withval=$with_libiberty; +else + with_libiberty=../libiberty +fi + + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -10586,7 +10599,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10589 "configure" +#line 10602 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -10692,7 +10705,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 10695 "configure" +#line 10708 "configure" #include "confdefs.h" #if HAVE_DLFCN_H |