]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 [linux]: Use only the CC basename in case statment
authorMats Rynge <rynge@isi.edu>
Wed, 17 Nov 2004 13:59:58 +0000 (13:59 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 17 Nov 2004 13:59:58 +0000 (13:59 +0000)
when checking for icc/ecc. Allows for setting CC to the full path
to the compiler.

ChangeLog
m4/libtool.m4

index 01fc77f66d1cab8cfb234d90e06a00148e792ca8..647a34c4ef9996c33b2b7767584950a3acdf2ee6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2004-11-17  Mats Rynge <rynge@isi.edu>
 
+       * 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
 
index 6eb36a0846449200f8debbaf8cba1bdd58cc2916..f2ca6c8c6c45d707c17277515d9903f53f39c28c 100644 (file)
@@ -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'