From: Ralf Wildenhues Date: Sat, 18 Dec 2004 21:45:59 +0000 (+0000) Subject: * libtool.m4 [linux] (AC_LIBTOOL_PROG_COMPILER_PIC): match X-Git-Tag: release-1-5-12~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b62f674eb1c15be4b61ae4a5f66feb9365e112a;p=thirdparty%2Flibtool.git * 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). --- diff --git a/ChangeLog b/ChangeLog index eacd43f80..891e9c687 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,10 @@ 2004-12-18 Ralf Wildenhues - * 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. diff --git a/libtool.m4 b/libtool.m4 index 4a35e42b0..6870a870b 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -4718,7 +4718,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) _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' @@ -4963,7 +4963,7 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) ;; 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'