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]

Re: [v3] Makefile portability improvements


On Nov 29, 2000, Benjamin Kosnik <bkoz@redhat.com> wrote:

>   # Alexandre put this in here for some libtool-related reason.
>   all: libstdc++.INC
>   libstdc++.INC: Makefile
> - 	$(MAKE) \
> - 	  top_builddir=`CDPATH=:. && cd $(top_builddir) && pwd` \
> - 	  top_srcdir=`CDPATH=:. && cd $(top_srcdir) && pwd` \
> - 	  tmp-$@
> - 	-rm -f $@
> - 	mv tmp-$@ $@
> - 
> - tmp-libstdc++.INC: Makefile
>   	echo $(INCLUDES) > $@
  
This can't be right.  top_builddir and top_srcdir may be relative
pathnames, but we need them absolute otherwise any other users of
libstdc++ headers will get it wrong.  Any particular reason why you
changed it?

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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