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]

[patch] Re: empty subdir after removing assert.h


On Mon, May 14, 2001 at 01:51:16AM +0400, Vladimir A Merzliakov wrote:
> After removing {Prefix}/{Platform}/include/assert.h 
> at i386-unknown-freebsd4.3 
> {Prefix}/i386-unknown-freebsd4.3/include doesn't createed,
> but empty {Prefix}/i386-unknown-freebsd4.3 subdir still exist.
> 
> Can be it creating also disable?

This is tricky. $(prefix)/$(target_alias) is also known as
$(gcc_tooldir).  We did indeed used to install our assert.h in
$(assertdir), normally $(gcc_tooldir)/include - why there and not
$(libsubdir)/include is a great mystery to me, and has been since the
first time I ever built gcc 2.7.2, back in 1995.

However, $(gcc_tooldir) is also used when building cross compilers:
the gcc and g++ drivers are installed in $(gcc_tooldir)/bin.  I cannot
find any logic to create $(gcc_tooldir)/bin, and I do not know why it
is we try to install just those drivers there.

I propose to apply the appended patch on the theory that it's already
broken, and in a native bootstrap we genuinely do not want to create
$(gcc_tooldir).  Reactions?

This whole area, incidentally, wants to be gone over with a chain saw,
but carefully, 'cos it affects unified tree builds.

-- 
zw  "... Forget Odysseus--all the available parallels are with the house of
    Atreus.  Fond as I am of Greek tragedy, I'd rather not take part in any."
    "You're to be sacrificed for good winds?"
    "Or eaten.  Which reminds me.  Care for an apple?"
    	-- Stephen Brust and Emma Bull, _Freedom and Necessity_


	* Makefile.in (installdirs): Don't create $(gcc_tooldir).

===================================================================
Index: Makefile.in
--- Makefile.in	2001/05/13 19:37:10	1.661
+++ Makefile.in	2001/05/13 22:29:56
@@ -2507,7 +2507,6 @@ installdirs:
 	done
 	-if [ -d $(bindir) ] ; then true ; else mkdir $(bindir) ; chmod a+rx $(bindir) ; fi
 	-if [ -d $(includedir) ] ; then true ; else mkdir $(includedir) ; chmod a+rx $(includedir) ; fi
-	-if [ -d $(gcc_tooldir) ] ; then true ; else mkdir $(gcc_tooldir) ; chmod a+rx $(gcc_tooldir) ; fi
 	-if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; chmod a+rx $(infodir) ; fi
 	-if [ -d $(slibdir) ] ; then true ; else mkdir $(slibdir) ; chmod a+rx $(slibdir) ; fi
 # We don't use mkdir -p to create the parents of man1dir,


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