This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
patch: use mkinstalldirs when installing multilibs
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 7 May 2003 18:14:45 -0700
- Subject: patch: use mkinstalldirs when installing multilibs
- Reply-to: aldyh at redhat dot com
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