diff options
author | Juergen Reuter <reuter@t00pcx17094.desy.de> | 2011-12-13 19:18:08 +0100 |
---|---|---|
committer | Gary V. Vaughan <gary@gnu.org> | 2012-10-02 21:04:04 +0700 |
commit | f8a4b90f9a712f47b7627d2cf96eed74825df91f (patch) | |
tree | 4fafe790b6655663744c318dd9f3d4f06dd2ee06 | |
parent | b25625e6b25427dba80051b2924060b1e84ea73e (diff) | |
download | libtool-f8a4b90f9a712f47b7627d2cf96eed74825df91f.tar.gz |
Enable nagfor fortran compiler support
* build-aux/ltmain.m4sh: nagfor compatible version string.
* m4/libtool.m4: nagfor support.
-rw-r--r-- | build-aux/ltmain.m4sh | 9 | ||||
-rw-r--r-- | m4/libtool.m4 | 16 |
2 files changed, 24 insertions, 1 deletions
diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index eabeb468..6a583ec0 100644 --- a/build-aux/ltmain.m4sh +++ b/build-aux/ltmain.m4sh @@ -6649,6 +6649,15 @@ func_mode_link () minor_current=$func_arith_result xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" + # On Darwin other compilers + case $CC in + nagfor*) + verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" + ;; + *) + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" + ;; + esac ;; freebsd-aout) diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 4dd84dc9..ea421270 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -1094,7 +1094,7 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES], _LT_TAGVAR(link_all_deplibs, $1)=yes _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined case $cc_basename in - ifort*) _lt_dar_can_shared=yes ;; + ifort*|nagfor*) _lt_dar_can_shared=yes ;; *) _lt_dar_can_shared=$GCC ;; esac if test yes = "$_lt_dar_can_shared"; then @@ -4311,6 +4311,20 @@ m4_if([$1], [CXX], [ fi ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + case $cc_basename in + 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' + ;; + esac + ;; + mingw* | cygwin* | pw32* | os2* | cegcc*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example). |