From: Samuel Meder Date: Thu, 10 Apr 2003 03:49:44 +0000 (+0000) Subject: * libtool.m4 Switch on $CC and add paterns to cases. X-Git-Tag: help~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24d6c1b8a3270d726cc7f0c1df78ada42cd2baaf;p=thirdparty%2Flibtool.git * libtool.m4 Switch on $CC and add paterns to cases. --- diff --git a/ChangeLog b/ChangeLog index 04ff9070a..0136c6745 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-04-09 Samuel Meder + + * libtool.m4 Switch on $CC and add paterns to cases. + 2003-04-09 Peter O'Gorman * libtool.m4: Move the AC_LIBTOOL_SYS_DYNAMIC_LINKER check diff --git a/libtool.m4 b/libtool.m4 index bfcdcc886..d3888850a 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -4849,13 +4849,13 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) ;; linux*) - case `basename $CC` in - icc|ecc) + 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) + 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'