[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: patch for "g++-x.x" named compilers
From: |
Robert Boehne |
Subject: |
Re: patch for "g++-x.x" named compilers |
Date: |
Thu, 24 Oct 2002 20:46:36 -0500 |
>From ltmain.in:
<SNIP>
# Infer the operation mode.
if test -z "$mode"; then
case $nonopt in
*cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
mode=link
for arg
do
case $arg in
-c)
mode=compile
break
;;
esac
done
;;
*db | *dbx | *strace | *truss)
<SNIP>
Hmmm, what does this code actually do for us?
I routinely use the following compilers with libtool:
aCC xlC CC cxx c89
and what about fort77 f77 f90 xlf etc. ?
It isn't necessary to support this IMHO, we can't try to
guess what compilers might be named, we should spit out
an error message when the mode isn't specified.
This appears to be left over from the C-only days,
and is, AFAICT, virtually unsupportable. It seems to
have been patched twice in the last few weeks, but isn't
anywhere near complete.
What would you all say to a patch that prints an
error if the mode isn't specified?
Robert
Bob Friesenhahn wrote:
>
> The first half of this patch is applied to CVS head. I could not find
> anything matching the second patch.
>
> Bob
>
> On Thu, 24 Oct 2002, Ossama Othman wrote:
>
> > Hi,
> >
> > This is from a Debian user:
> >
> > --------------------------
> > When one tells libtool to use g++-3.0 as the compiler, libtool barfs
> > because it doesn't recognize that as a C/C++ compiler. This makes it
> > harder for people on an architecture which uses GCC 2.x as the default
> > compiler (eg i386) to diagnose and debug problems related to GCC 3.x.
> >
> > Here is a simple possible fix, to /usr/bin/libtool:
> >
> > < *cc | *++ | gcc* | *-gcc*)
> >
> > > *cc | *++ | gcc* | *-gcc* | g++*)
> > --------------------------
> >
> > I suppose this should now be:
> >
> > < *cc | *++ | gcc* | *-gcc* | xlc*)
> >
> > > *cc | *++ | gcc* | *-gcc* | g++* | xlc*)
> >
> >
> >
> > -Ossama
> > --
> > Ossama Othman <address@hidden>
> > Distributed Object Computing Laboratory, Univ. of California at Irvine
> > 1024D/F7A394A8 - 84ED AA0B 1203 99E4 1068 70E6 5EB7 5E71 F7A3 94A8
> >
> >
> > _______________________________________________
> > Libtool-patches mailing list
> > address@hidden
> > http://mail.gnu.org/mailman/listinfo/libtool-patches
> >
>
> ======================================
> Bob Friesenhahn
> address@hidden
> http://www.simplesystems.org/users/bfriesen
>
> _______________________________________________
> Libtool-patches mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/libtool-patches
- patch for "g++-x.x" named compilers, Ossama Othman, 2002/10/24
- Re: patch for "g++-x.x" named compilers, Bob Friesenhahn, 2002/10/24
- Re: patch for "g++-x.x" named compilers,
Robert Boehne <=
- Re: patch for "g++-x.x" named compilers, Bob Friesenhahn, 2002/10/24
- Re: patch for "g++-x.x" named compilers, Robert Boehne, 2002/10/27
- Re: patch for "g++-x.x" named compilers, Albert Chin, 2002/10/27
- Re: patch for "g++-x.x" named compilers, Bob Friesenhahn, 2002/10/27
- Re: patch for "g++-x.x" named compilers, Robert Boehne, 2002/10/27
- Re: patch for "g++-x.x" named compilers, Robert Boehne, 2002/10/28
- Re: patch for "g++-x.x" named compilers, Bob Friesenhahn, 2002/10/28
- Re: patch for "g++-x.x" named compilers, Bob Friesenhahn, 2002/10/27