+2004-04-19 Gary V. Vaughan <gary@gnu.org>
+
+ * m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Intel C++ compiler 8.0 and
+ newer adds predep_objects and postdep_objects itself, so don't
+ duplicate them in $archive_cmds and $archive_expsym_cmds.
+ * NEWS: Updated.
+ Reported by Roberto Bagnare <bagnara@cs.unipr.it>
+
2004-04-17 Peter O'Gorman <peter@pogma.com>
* libltdl/loader-dyld.c: Fix compilation issues. Set Original author
to me.
-2004-04-17 Todd Vierling <tv@duh.org>,
+2004-04-17 Todd Vierling <tv@duh.org>,
Peter O'Gorman <peter@pogma.com>
* m4/libtool.m4 (AC_LIBTOOL_SYS_MAX_CMD_LEN): Use sysctl to get the
* configure.ac: Invoke LT_LANG for each desired supported language.
* doc/libtool.texi: Remove documentation for the LT_INIT options,
rewrite LT_LANG documentation.
-
+
2004-04-14 Alexandre Duret-Lutz <adl@gnu.org>
* bootstrap: Delete acinclude.m4.
if test "$GCC" = yes; then
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
else
- reload_cmds='$LD$reload_flag -o $output$reload_objs'
+ reload_cmds='$LD$reload_flag -o $output$reload_objs'
fi
;;
esac
*)
_LT_AC_TAGVAR(ld_shlibs, $1)=no
;;
- esac
+ esac
fi
;;
dgux*)
icpc)
# Intel C++
with_gnu_ld=yes
+ # version 8.0 and above of icpc choke on multiply defined symbols
+ # if we add $predep_objects and $postdep_objects, however 7.1 and
+ # earlier do not add the objects themselves. Only 8.0 (and newer?)
+ # support the --version argument, so we use that to distinguish them:
+ lt_icpc_version=`icpc --version 2>/dev/null`
+ case $lt_icpc_version in
+ [[0-9.]]*) # Version 8.0 or newer
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ ;;
+ *) # No output from 7.1 and older
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+ ;;
+ esac
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
- _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
- _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'