bug#26484: feature request: add ICC support on Windows
| Newsgroups | gmane.comp.gnu.libtool.bugs |
|---|---|
| Message-ID | <[email protected]> |
Hello, After Windows ICC support was added to 'compile' script, similar could be done to 'libtool.m4'. Related patch added in attachment. It was tested for GMP builds using Windows ICC with <shared|static> layouts, and all builds tasks finished successfully. Additionally ensured, that it doesn't break builds using MSVC. CC: Peter Rosin, as Author of commit (http://git.savannah.gnu.org/cgit/libtool.git/commit/?id=1ac3ced59db72099c6049e05b3643042fd5a9ea4), CC: Jonathan L Peyton, as Author of commit (http://git.savannah.gnu.org/cgit/automake.git/commit/?id=c40e27e1c2a60f58e72e65d73d808f782d55494a), in case they'll be interested to make review aor join this discussion. Best, Alexander _______________________________________________ Bug-libtool mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-libtool
libtool_icc.diff
(application/octet-stream, 1.2 KB)
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 597c6042..860a1660 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -2587,7 +2587,7 @@ m4_if([$1], [],[
dynamic_linker='Win32 ld.exe'
;;
- *,cl*)
+ *,cl* | *,icl*)
# Native MSVC
libname_spec='$name'
soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
@@ -4949,7 +4949,7 @@ m4_if([$1], [CXX], [
;;
cygwin* | mingw* | cegcc*)
case $cc_basename in
- cl*)
+ cl* | icl*)
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
;;
*)
@@ -5583,7 +5583,7 @@ _LT_EOF
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.
case $cc_basename in
- cl*)
+ cl* | icl*)
# Native MSVC
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
@@ -6655,7 +6655,7 @@ if test yes != "$_lt_caught_CXX_error"; then
cygwin* | mingw* | pw32* | cegcc*)
case $GXX,$cc_basename in
- ,cl* | no,cl*)
+ ,cl* | no,cl* | ,icl* | no,icl*)
# Native MSVC
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.