This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH (top-level build machinery, mainline, ping1): Fix in-src'strap


>> $srcdir/gcc/libiberty
>> $srcdir/gcc/<target-triple>/libiberty
>
> I think libiberty is the only library where this happens, and
> unfortunately knowledge of it's place in the build tree is pervasive.
>
> Perhaps libiberty could have an $(objdir)/ override on objects, so
> that they won't be found via vpath?

Loren and DJ,

If the GNU Make requirement applicable to libiberty also, wouldn't something like the following (lightly tested) patch solve the problem?

Kelley
*** Makefile.in.orig	Wed Dec 17 11:25:59 2003
--- Makefile.in	Wed Dec 17 11:26:47 2003
***************
*** 28,34 ****
  
  libiberty_topdir = @libiberty_topdir@
  srcdir = @srcdir@
! VPATH = @srcdir@
  
  prefix = @prefix@
  
--- 28,41 ----
  
  libiberty_topdir = @libiberty_topdir@
  srcdir = @srcdir@
! 
! vpath
! vpath %.c @srcdir@
! vpath %.h @srcdir@
! vpath %.texi @srcdir@
! vpath %.txh @srcdir@
! vpath %.m4 @srcdir@
! vpath %.in @srcdir@
  
  prefix = @prefix@
  

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]