]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
Support ifort on darwin.
authorPeter O'Gorman <peter@pogma.com>
Fri, 13 Jun 2008 15:53:34 +0000 (10:53 -0500)
committerPeter O'Gorman <peter@pogma.com>
Fri, 13 Jun 2008 15:53:34 +0000 (10:53 -0500)
* libltdl/m4/libtool.m4 (_LT_DARWIN_LINKER_FEATURES): Build
shared libraries with ifort.
Reported by Christopher Hulbert.

ChangeLog
libltdl/m4/libtool.m4

index 92b3214802bdb4fe5ec6ddbe7f2699f4aa91c623..c22304d79583f64f758543bfa9dbf8e625bd7717 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-06-13  Peter O'Gorman  <peter@pogma.com>
+
+       Support ifort on darwin.
+       * libltdl/m4/libtool.m4 (_LT_DARWIN_LINKER_FEATURES): Build
+       shared libraries with ifort.
+       Reported by Christopher Hulbert.
+
 2008-06-01  Charles Wilson  <libtool@cwilson.fastmail.fm>
 
        [mingw] fix cross-compile-with-wine case
index 654f54a9c26cde26bbc248bf08ea2a576f8ed334..103269d7e3f75ab11e745bbca5bda595fc956580 100644 (file)
@@ -990,7 +990,11 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
   _LT_TAGVAR(whole_archive_flag_spec, $1)=''
   _LT_TAGVAR(link_all_deplibs, $1)=yes
   _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
-  if test "$GCC" = "yes"; then
+  case $cc_basename in
+     ifort*) _lt_dar_can_shared=yes ;;
+     *) _lt_dar_can_shared=$GCC ;;
+  esac
+  if test "$_lt_dar_can_shared" = "yes"; then
     output_verbose_link_cmd=echo
     _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
     _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"