Index: ChangeLog =================================================================== RCS file: /cvsroot/libtool/libtool/ChangeLog,v retrieving revision 1.1738 diff -u -5 -r1.1738 ChangeLog --- ChangeLog 10 Nov 2004 13:27:20 -0000 1.1738 +++ ChangeLog 11 Nov 2004 20:32:31 -0000 @@ -1,5 +1,14 @@ +2004-11-11 Mats Rynge + + * libtool.m4: 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 + 2004-11-10 Gary V. Vaughan From James Henstridge : * m4/libtool.m4, m4/ltdl.m4, m4/ltoptions.m4: Added commented out empty macro definitions to match each AU_DEFUN to help aclocal Index: m4/libtool.m4 =================================================================== RCS file: /cvsroot/libtool/libtool/m4/libtool.m4,v retrieving revision 1.132 diff -u -5 -r1.132 libtool.m4 --- m4/libtool.m4 10 Nov 2004 13:27:21 -0000 1.132 +++ m4/libtool.m4 11 Nov 2004 20:32:32 -0000 @@ -3321,11 +3321,11 @@ # PIC (with -KPIC) is the default. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' ;; 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' _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; @@ -4142,11 +4142,11 @@ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_shlibpath_var, $1)=no case $host_os in solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; *) # Supported since Solaris 2.6 (maybe 2.5.1?) - _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;; esac _LT_TAGVAR(link_all_deplibs, $1)=yes ;; sunos4*)