This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: libgcc move to the top level
Daniel Jacobowitz wrote:
On Thu, Jan 04, 2007 at 03:57:00PM +0100, Marcin Dalecki wrote:
Adding multilib support to Makefile in ../../.././libgcc
with_multisubdir=ppc64
Makefile:141: ../../gcc/libgcc.mvars: No such file or directory
It's off by one.
Please try this:
2007-01-04 Paolo Bonzini <bonzini@gnu.org>
* configure.ac: Add GCC_TOPLEV_SUBDIRS.
* Makefile.in (host_subdir): Substitute it.
(gcc_objdir): Use it.
Index: configure.ac
===================================================================
--- configure.ac (revision 120429)
+++ configure.ac (working copy)
@@ -74,6 +74,7 @@ esac
AC_CANONICAL_HOST
ACX_NONCANONICAL_HOST
+GCC_TOPLEV_SUBDIRS
dnl These must be called before AM_PROG_LIBTOOL, because it may want
dnl to call AC_CHECK_PROG.
Index: Makefile.in
===================================================================
--- Makefile.in (revision 120429)
+++ Makefile.in (working copy)
@@ -21,8 +21,10 @@
#
libgcc_topdir = @libgcc_topdir@
+host_subdir = @host_subdir@
+
gcc_srcdir = $(libgcc_topdir)/gcc
-gcc_objdir = $(MULTIBUILDTOP)../../gcc
+gcc_objdir = $(MULTIBUILDTOP)../../$(host_subdir)/gcc
srcdir = @srcdir@
Paolo