]> 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 14:06:50 +0000 (14:06 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 17 Nov 2004 14:06:50 +0000 (14:06 +0000)
when checking for icc/ecc. Allows for setting CC to the full path
to the compiler.

ChangeLog
m4/libtool.m4

index 631be8bdf8a153ffba4555e07f29a270ef6e6132..befda78df0dab7aa1ae0d6f6a866bc2733a27fdd 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 ae797e13c71d6c1c62c2164aeb415666fc550d44..67f4192603362097bc1b22647f5961279a110520 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'