From: Mats Rynge Date: Wed, 17 Nov 2004 13:59:58 +0000 (+0000) Subject: * libtool.m4 [linux]: Use only the CC basename in case statment X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb97c5150d94240d23a415b5e85eac9194ae6c77;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 01fc77f66..647a34c4e 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 6eb36a084..f2ca6c8c6 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'