libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add support for Intel MPI fortran compiler


From: Christian Rössel
Subject: Re: [PATCH] Add support for Intel MPI fortran compiler
Date: Mon, 14 Oct 2013 09:54:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

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)=




reply via email to

[Prev in Thread] Current Thread [Next in Thread]