bug-libtool
[Top][All Lists]
Advanced

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

Re: static FORTRAN compilation set-up in libtool.m4


From: Ralf Wildenhues
Subject: Re: static FORTRAN compilation set-up in libtool.m4
Date: Sun, 12 Sep 2010 12:30:40 +0200
User-agent: Mutt/1.5.20 (2010-04-22)

* Ralf Wildenhues wrote on Thu, Sep 02, 2010 at 07:41:25PM CEST:
> That's fine.  Any support for nagfor is an improvement over no support.

I've pushed the patch below to git master of Libtool now.
Please test as described before, if at all possible.

I changed the pic flag to -PIC so also large codes will work.  If you
need to use -pic for more efficiency, set lt_cv_prog_compiler_pic_F77
and/or ..._FC on the configure command line to override this.

(The "(tiny change)" just denotes that no copyright papers have been
signed.)

Thanks,
Ralf

2010-09-12  J├╝rgen Reuter  <address@hidden>  (tiny change)
            Ralf Wildenhues  <address@hidden>

        Initial support for the NAG Fortran compiler on GNU/Linux.
        * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [linux] <nagfor>:
        New set of entries, for NAG Fortran 5.1 and 5.2.
        * NEWS: Update.

diff --git a/NEWS b/NEWS
index 5a2531c..1d4419b 100644
--- a/NEWS
+++ b/NEWS
@@ -36,6 +36,7 @@ New in 2.2.12 2010-08-??: git version 2.2.11a, Libtool team:
     variable MANIFEST_TOOL. Please note that the import library naming
     has changed (from foo-2.lib to foo.dll.lib) from when the code lived
     in its own git branch.
+  - Initial support for the NAG Fortran compiler on GNU/Linux.
 
 * Bug fixes:
 
diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index 895f28d..a9e91f6 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -4247,6 +4247,12 @@ m4_if([$1], [CXX], [
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
        _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
        ;;
+      nagfor*)
+       # NAG Fortran compiler
+       _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
+       _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
+       _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
+       ;;
       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
         # Portland Group compilers (*not* the Pentium gcc compiler,
        # which looks to be a dead project)



reply via email to

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