diff --git a/ChangeLog b/ChangeLog index 0284ca4c..17438aa0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-04-09 Samuel Meder + + * libtool.m4 Switch on `basename $CC` not $CC + 2003-04-05 Peter O'Gorman * libtool.m4: if ZSH_VERSION is set then setopt NO_GLOB_SUBST so diff --git a/libtool.m4 b/libtool.m4 index 19ebaea7..216fe12a 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -4848,7 +4848,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) ;; linux*) - case $CC in + case `basename $CC` in icc|ecc) _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'