This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Oddity building 3.2.2 on AIX 4.3.2
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: 19 Feb 2003 23:32:38 -0300
- Subject: Re: Oddity building 3.2.2 on AIX 4.3.2
- Organization: GCC Team, Red Hat
- References: <20030209153105.GA95482@spuckler.il.thewrittenword.com><orbs1g8vit.fsf@free.redhat.lsd.ic.unicamp.br><20030216055252.GA81576@spuckler.il.thewrittenword.com><m3d6lr74op.fsf@uniton.integrable-solutions.net>
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