patch: use mkinstalldirs when installing multilibs

Aldy Hernandez aldyh@redhat.com
Thu May 8 01:14:00 GMT 2003


When doing a "make install" on the e500, the installation dies when
it tries to create a directory without the parent directories (this is
while mkdir-ing one of the gazillion multilib directories).

Is this ok for mainline and e500 branch?

Tested by doing a make install on powerpc-eabispe.

2003-05-07  Aldy Hernandez  <aldyh@redhat.com>

	* mklibgcc.in: Use mkinstalldirs when installing multilib
	directories.

Index: mklibgcc.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/mklibgcc.in,v
retrieving revision 1.59
diff -c -p -r1.59 mklibgcc.in
*** mklibgcc.in	23 Apr 2003 14:05:11 -0000	1.59
--- mklibgcc.in	8 May 2003 01:09:51 -0000
*************** for ml in $MULTILIBS; do
*** 497,503 ****
    flags=`echo ${ml} | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`;
    if [ $dir != . ]; then
      ldir='$(DESTDIR)$(libsubdir)'/$dir
!     echo "	if [ -d $ldir ]; then true; else mkdir $ldir; chmod a+rx $ldir; fi;"
    else
      ldir='$(DESTDIR)$(libsubdir)'
    fi
--- 497,503 ----
    flags=`echo ${ml} | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`;
    if [ $dir != . ]; then
      ldir='$(DESTDIR)$(libsubdir)'/$dir
!     echo "	if [ -d $ldir ]; then true; else $mkinstalldirs $ldir; chmod a+rx $ldir; fi;"
    else
      ldir='$(DESTDIR)$(libsubdir)'
    fi



More information about the Gcc-patches mailing list