Re: [PATCH] Add support for Intel MPI fortran compiler
Christian Rössel <[email protected]>
| Newsgroups | gmane.comp.gnu.libtool.patches |
|---|---|
| Message-ID | <[email protected]> |
Ward,
On 10/07/2013 03:11 PM, Ward Poelmans wrote:
> In the check for static/shared libraries, the Intel MPI fortran compiler
> is not detected.
MPI compiler wrappers using Intel compilers are already handled, at
least for $host_os in linux* | k*bsd*-gnu | kopensolaris*-gnu).
For libtool 2.4.2., see line 4403-4407 in libltdl/m4/libtool.m4:
*Intel*\ [[CF]]*Compiler*)
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
;;
See also https://lists.gnu.org/archive/html/libtool/2010-12/msg00031.html
Christian
> ---
> m4/libtool.m4 | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/m4/libtool.m4 b/m4/libtool.m4
> index 80d7e44..246a337 100644
> --- a/m4/libtool.m4
> +++ b/m4/libtool.m4
> @@ -4443,7 +4443,7 @@ m4_if([$1], [CXX], [
> ;;
> # icc used to be incompatible with GCC.
> # ICC 10 doesn't accept -KPIC any more.
> - icc* | ifort*)
> + icc* | ifort* | mpif77* | mpif90* | mpifc* | mpiifort*)
> _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
> _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
> _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
> @@ -4909,7 +4909,7 @@ _LT_EOF
> tmp_addflag=' -i_dynamic' ;;
> efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
> tmp_addflag=' -i_dynamic -nofor_main' ;;
> - ifc* | ifort*) # Intel Fortran compiler
> + ifc* | ifort* | mpif77* | mpif90* | mpifc* | mpiifort*) # Intel Fortran compiler
> tmp_addflag=' -nofor_main' ;;
> lf95*) # Lahey Fortran 8.1
> _LT_TAGVAR(whole_archive_flag_spec, $1)=
>