[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libtool and IRIX 6.5 and C++
From: |
libtool |
Subject: |
Re: libtool and IRIX 6.5 and C++ |
Date: |
Tue, 7 Aug 2001 11:42:01 -0500 |
User-agent: |
Mutt/1.2.5i |
On Tue, Aug 07, 2001 at 04:15:52AM +0100, Gary V. Vaughan wrote:
> Does the attached patch work for you?
I don't think this will work. Looking at the autoconf macros in
autoconf 2.52:
$ cd /opt/TWWfsw/autoconf25/share/autoconf [autoconf 2.52]
$ grep GCC= *
aclang.m4:GCC=`test $ac_compiler_gnu = yes && echo yes`
autoconf.m4f:GCC=`test $ac_compiler_gnu = yes && echo yes`
$ cd /opt/TWWfsw/autoconf/share/autoconf [autoconf 2.13]
$ grep GCC= *
acspecific.m4: GCC=yes
acspecific.m4: GCC=
autoconf.m4f: GCC=yes
autoconf.m4f: GCC=
autoheader.m4f: GCC=yes
autoheader.m4f: GCC=
The problem with your patch is it sets with_gcc=no *only* if $GCC is
unset. However, if GCC is not being used, $GCC is set but the value is
NULL.
$ echo ${a-no}
no
$ a=
$ echo ${a-no}
[empty line]
How portable is:
$ echo ${a:=no}
no
$ a=
$ echo ${a:=no}
no
So, it seems we're limited to:
--- ltmain.in 2001/08/05 11:29:09 1.269
+++ ltmain.in 2001/08/07 16:36:45
@@ -1171,7 +1171,7 @@ EOF
# so, if we see these flags be careful not to treat them like -L
-L[A-Z][A-Z]*:*)
case $with_gcc/$host in
- no/*-*-irix*)
+ no/*-*-irix*|/*-*-irix*)
compile_command="$compile_command $arg"
finalize_command="$finalize_command $arg"
;;
or:
--- libtool.m4 2001/08/06 17:52:37 1.218
+++ libtool.m4 2001/08/07 16:37:48
@@ -3306,7 +3308,7 @@ LTCC=$LTCC
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
# Is the compiler the GNU C compiler?
-with_gcc=$_LT_AC_TAGVAR(GCC, $1)
+with_gcc=${_LT_AC_TAGVAR(GCC, $1):=no}
# The linker used to build libraries.
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
I did a grep of := in the libtool sources and didn't find anything so
doubt it is portable. I prefer the fix to the case statement.
> Cheers,
> Gary.
>
> On Tuesday 07 August 2001 3:50 am, Steve M. Robbins wrote:
> > Hi,
> >
> > I'm having trouble with libtool under IRIX 6.5 while using the vendor
> > C++ compiler,
> >
> > I need libtool to pass along "-LANG:std" during both compiling and
> > linking. The logic that would do that looks like:
> >
> > # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
> > # so, if we see these flags be careful not to treat them like -L
> > -L[A-Z][A-Z]*:*)
> > case $with_gcc/$host in
> > no/*-*-irix*)
> >
> > Unfortunately, the generated libtool sets with_gcc to the empty
> > string, and this is never triggered :-/
> >
> > This is with the CVS libtool, as of this afternoon.
> >
> > -Steve
>
> --
> ())_. Gary V. Vaughan gary@(oranda.demon.co.uk|gnu.org)
> ( '/ Research Scientist http://www.oranda.demon.co.uk ,_())____
> / )= GNU Hacker http://www.gnu.org/software/libtool \' `&
> `(_~)_ Tech' Author http://sources.redhat.com/autobook =`---d__/
--
albert chin (address@hidden)