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]

[Bug bootstrap/13068] [3.3 Regression] mklibgcc.in doesn't installdeep MULTLIBS


Hi,

gcc-3.3's mklibgcc.in uses mkdir to create multilib subdirs.

This fails on targets with deep multlib-subdirs, when no multilib
variant in a parent multilib subdir exists (e.g. sh-rtems).

The patch below changes mklibgcc.in to using mkinstalldirs instead of
mkdir.

c.f. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13068

Ralf

2003-11-18  Ralf Corsepius <corsepiu@faw.uni-ulm.de>

	* mklibgcc.in: Use $(mkinstalldirs) instead of mkdir to install
	multilibs.

--- gcc-3.3.2/gcc/mklibgcc.in~	14 Nov 2003 06:46:07 -0000	1.48.4.4
+++ gcc-3.3.2/gcc/mklibgcc.in	16 Nov 2003 07:28:35 -0000
@@ -465,7 +465,7 @@
   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;"
+    echo "	if [ -d $ldir ]; then true; else $mkinstalldirs $ldir; chmod a+rx $ldir; fi;"
   else
     ldir='$(DESTDIR)$(libsubdir)'
   fi

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