From: Mats Rynge Date: Wed, 17 Nov 2004 14:06:50 +0000 (+0000) Subject: * libtool.m4 [linux]: Use only the CC basename in case statment X-Git-Tag: release-2-1b~860 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09d37d85d5f614e33d410f778ca312d9dada98f6;p=thirdparty%2Flibtool.git * libtool.m4 [linux]: Use only the CC basename in case statment when checking for icc/ecc. Allows for setting CC to the full path to the compiler. --- diff --git a/ChangeLog b/ChangeLog index 631be8bdf..befda78df 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2004-11-17 Mats Rynge + * libtool.m4 [linux]: Use only the CC basename in case statment + when checking for icc/ecc. Allows for setting CC to the full path + to the compiler. + * libtool.m4 [solaris]: Added missing 'with linker' flags to -z allextract ... -z defaultextract flags diff --git a/m4/libtool.m4 b/m4/libtool.m4 index ae797e13c..67f419260 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -3323,7 +3323,7 @@ m4_if([$1], [CXX], [ ;; linux*) - case $CC in + case "$cc_basename" in icc* | ecc*) _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'