On Sat, Aug 26, 2000 at 12:09:14AM +0100, Gary V. Vaughan wrote:
> On Fri, Aug 25, 2000 at 05:26:39PM -0300, Alexandre Oliva wrote:
> > On Aug 25, 2000, Michael Matz <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > > On Fri, 25 Aug 2000, Gary V. Vaughan wrote:
> > >> 
> > >> A pragmatic approach might be:
> > >> 
> > >> case $arg in
> > >> .
> > >> -LANG:*) continue ;;
> > >> -L*)
> > 
> > > Yep, although I've done the ANG: case in -L conditionalized on $host
> > > beeing *-*-irix. Note also, that SGI's CC also recognizes -LIST: and
> > > -LNO:. They must have been crazy.
> > 
> > How about:
> > 
> > -L[A-Z][A-Z]*:*) continue ;;
> > 
> > This wouldn't match DOS drive names, which is the only reasonably
> > situation in which a colon would appear after -L.
> 
> Following this principle through to its logical conclusion, do we also
> need to discard these flags on IRIX when GNU ld is the linker?
> 
>       case $arg in
>       .
>       .
>       .
>       -L*)
>         case $host/$arg in
>         *-*-irix*/-L[A-Z][A-Z]*:*) continue ;;
>         esac
> 
>         ...
>         ;;

You cannot just 'continue'. You need something like:
        case "$host/$arg" in
          *-*-irix*/-LANG:*)
            compile_command="$compile_command $arg"
            continue
            ;;
        esac

I've tested just 'continue' and --mode=link doesn't pass -LANG:std
through.

-- 
albert chin ([EMAIL PROTECTED])

Reply via email to