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]

Re: Oddity building 3.2.2 on AIX 4.3.2


On Feb 17, 2003, Gabriel Dos Reis <gdr at integrable-solutions dot net> wrote:

> Albert Chin <gcc at lists dot thewrittenword dot com> writes:
> | On Thu, Feb 13, 2003 at 05:55:22AM -0200, Alexandre Oliva wrote:
> | > On Feb  9, 2003, Albert Chin <gcc at lists dot thewrittenword dot com> wrote:
> | > 
> | > > However, whenever the above code is run, the output of
> | > > toolexeclibdir=$toolexeclibdir/... is *always* the usage output from
> | > > the C compiler.
> | > 
> | > Oops.  Would you please try this patch?  (in case you don't know, you
> | > have to rebuild configure after installing it, or apply it on
> | > configure too)
> | > 
> | > Sorry that I broke it :-(
> | 
> | This patch fixes the problem.

> Excellent.  Alexandre, this patch is OK for gcc-3_2-branch.

Thanks.  For the record (in gcc-patches), here's what I'm checking in
mainline, 3.3 and 3.2:

Index: zlib/ChangeLog.gcj
from  Alexandre Oliva  <aoliva at redhat dot com>

	* configure.in (multiosdir): Set to nothing if compiler is not GCC
	or if it doesn't support -print-multi-os-directory.
	* configure: Rebuilt.

Index: zlib/configure.in
===================================================================
RCS file: /cvs/gcc/gcc/zlib/configure.in,v
retrieving revision 1.12.16.1.4.1
diff -u -p -r1.12.16.1.4.1 configure.in
--- zlib/configure.in 28 Jan 2003 01:44:15 -0000 1.12.16.1.4.1
+++ zlib/configure.in 20 Feb 2003 02:31:48 -0000
@@ -121,7 +121,12 @@ else
   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
   toolexeclibdir='$(libdir)'
 fi
-toolexeclibdir=$toolexeclibdir/`$CC -print-multi-os-directory 2>/dev/null || echo .`
+if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
+  multiosdir=/`$CC -print-multi-os-directory`
+else
+  multiosdir=
+fi
+toolexeclibdir=${toolexeclibdir}${multiosdir}
 AC_SUBST(toolexecdir)
 AC_SUBST(toolexeclibdir)
 
-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                 aoliva at {redhat dot com, gcc.gnu.org}
CS PhD student at IC-Unicamp        oliva at {lsd dot ic dot unicamp dot br, gnu.org}
Free Software Evangelist                Professional serial bug killer

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