-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathlibtool-icl.patch
61 lines (58 loc) · 2.27 KB
/
libtool-icl.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Originall from http://git.savannah.gnu.org/cgit/libtool.git/patch/?id=99bd0948e20ca796c0d38dee606965b86ce0832a
This was integrated in libtool 2.4.7.
So what remains is to add the ifort case to get the libname_spec correct when (also) using Intel Fortran.
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -6738,8 +6738,8 @@
dynamic_linker='Win32 ld.exe'
;;
- *,cl* | *,icl*)
- # Native MSVC or ICC
+ *,cl* | *,icl* | *,ifort* | *,icx* | *,ifx*)
+ # Native MSVC or classic or new Intel Compilers
libname_spec='$name'
soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
library_names_spec='$libname.dll.lib'
@@ -9193,7 +9193,7 @@
;;
cygwin* | mingw* | windows* | cegcc*)
case $cc_basename in
- cl* | icl*)
+ cl* | icl* | ifort* | icx* | ifx*)
_LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
;;
*)
@@ -9827,12 +9827,12 @@
cygwin* | mingw* | windows* | pw32* | cegcc*)
# When not using gcc, we currently assume that we are using
- # Microsoft Visual C++ or Intel C++ Compiler.
+ # Microsoft Visual C++ or Intel C++/Fortran Compiler.
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.
case $cc_basename in
- cl* | icl*)
- # Native MSVC or ICC
+ cl* | icl* | ifort* | icx* | ifx*)
+ # Native MSVC or classic or new Intel Compilers
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
_LT_TAGVAR(always_export_symbols, $1)=yes
@@ -9873,7 +9873,7 @@
fi'
;;
*)
- # Assume MSVC and ICC wrapper
+ # Assume MSVC and Intel compilers wrapper
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
# Tell ltmain to make .lib files, not .a files.
@@ -10905,8 +10905,8 @@
cygwin* | mingw* | windows* | pw32* | cegcc*)
case $GXX,$cc_basename in
- ,cl* | no,cl* | ,icl* | no,icl*)
- # Native MSVC or ICC
+ ,cl* | no,cl* | ,icl* | no,icl* | ,ifort* | no,ifort* | ,icx* | no,icx* | ,ifx* | no,ifx*)
+ # Native MSVC or classic or new Intel compilers
# hardcode_libdir_flag_spec is actually meaningless, as there is
# no search path for DLLs.
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '