diff options
author | tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-13 14:30:46 +0000 |
---|---|---|
committer | tschwinge <tschwinge@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-13 14:30:46 +0000 |
commit | e389d60670e796d29c0c10f119c8fc2275f9b0ef (patch) | |
tree | 551e04841da61c4b5f65c73d0dcc899ddd993371 /lto-plugin/configure | |
parent | 034f210bacecb7d4ee5f9be5d89edfba1b98a609 (diff) | |
download | gcc-e389d60670e796d29c0c10f119c8fc2275f9b0ef.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211642 138bc75d-0d04-0410-961f-82ee72b054a4
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 a579b99f404..6c36dfb5657 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 |