summaryrefslogtreecommitdiff
path: root/lto-plugin/configure.ac
diff options
context:
space:
mode:
authorH.J. Lu <hongjiu.lu@intel.com>2014-08-26 14:47:15 +0000
committerH.J. Lu <hjl@gcc.gnu.org>2014-08-26 07:47:15 -0700
commit43f4a446c24f8a950442c0d432788704a0531bf3 (patch)
tree8deb0af0974e71649c1b37d9053ef2140e561130 /lto-plugin/configure.ac
parent13dfd55471b7294fa33a2f4f78b7e6e016770957 (diff)
downloadgcc-43f4a446c24f8a950442c0d432788704a0531bf3.tar.gz
Properly set gcc_build_dir for in-tree build
PR bootstrap/62260 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@. * configure.ac (gcc_build_dir): Set and AC_SUBST according to $host_subdir. * Makefile.in: Regenerated. * configure: Likewise. From-SVN: r214524
Diffstat (limited to 'lto-plugin/configure.ac')
-rw-r--r--lto-plugin/configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/lto-plugin/configure.ac b/lto-plugin/configure.ac
index 6a5ae8a4ef5..c3ae93e12a7 100644
--- a/lto-plugin/configure.ac
+++ b/lto-plugin/configure.ac
@@ -27,6 +27,13 @@ if test "x$have_static_libgcc" = xyes; then
fi
AC_SUBST(ac_lto_plugin_ldflags)
+if test x"$host_subdir" = x.; then
+ gcc_build_dir=../gcc
+else
+ gcc_build_dir=../../$host_subdir/gcc
+fi
+AC_SUBST(gcc_build_dir)
+
AM_PROG_LIBTOOL
ACX_LT_HOST_FLAGS
AC_SUBST(target_noncanonical)