libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: $CC and intel icc/ecc compiler


From: Samuel Meder
Subject: Re: $CC and intel icc/ecc compiler
Date: 09 Apr 2003 20:45:12 -0500

On Wed, 2003-04-09 at 20:35, Bob Friesenhahn wrote:
> On Wed, 9 Apr 2003, Charles Wilson wrote:
> 
> > Only half paying attention, but doesn't this break an earlier patch that
> > allowed things like "-mno-cygwin" to be included in the $CC variable?
> > Or am I mis-remembering?
> 
> Yes, it sounds like it does.  It also would break important things
> like
> 
>   CC="gcc -V 3.1.1"
> 
> which I happen to be using at the moment.

Please read the patch. It changes 

    linux*)
      case $CC in
      icc|ecc)
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
        ;;
      ccc)
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
        # All Alpha code is PIC.
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
        ;;
      esac
      ;;
to

    linux*)
      case `basename $CC` in
      icc|ecc)
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
        ;;
      ccc)
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
        # All Alpha code is PIC.
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
        ;;
      esac
      ;;

If you are using gcc you will never hit this case statement. Also, a
quick grep -r on mno-cygwin gives no hits other than ChangeLog.1 and 
mail/cygwin32. My understanding is that the option stripping that
libtool does has changed a little so it may not longer need special
processing. It should be orthogonal in any case.

/Sam

> 
> Bob
> ======================================
> Bob Friesenhahn
> address@hidden
> http://www.simplesystems.org/users/bfriesen
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]