$cc_basename, not $CC against icc. Also, for symmetry match
icpc* and ecpc* (ia64 version of icpc).
2004-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
- * libltdl/ltdl.c [cygwin, mingw] (opendir): Fix write of constant
+ * libtool.m4 [linux] (AC_LIBTOOL_PROG_COMPILER_PIC): match
+ $cc_basename, not $CC against icc. Also, for symmetry match
+ icpc* and ecpc* (ia64 version of icpc).
+
+ * libltdl/ltdl.c [mingw] (opendir): Fix write of constant
strings past end of buffer.
(opendir, readdir): Fix read past end of buffer.
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
;;
- icpc)
+ icpc* | ecpc*)
# Intel C++
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
;;
linux*)
- case $CC in
+ case $cc_basename in
icc* | ecc*)
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'