]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4: Add support for Intel icc compiler for Linux.
authorAllan Sandfeld Jensen <snowwolf@one2one-networks.com>
Wed, 11 Dec 2002 19:44:59 +0000 (19:44 +0000)
committerRobert Boehne <rboehne@gnu.org>
Wed, 11 Dec 2002 19:44:59 +0000 (19:44 +0000)
ChangeLog
libtool.m4

index 56a21f5037751ea00fce70d231c35cee5b68b491..c9b17dda5c3426c9465552464589ee6407852bae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-12-11  Allan Sandfeld Jensen  <snowwolf@one2one-networks.com>
+
+       * libtool.m4: Add support for Intel icc compiler for Linux.
+
 2002-12-11  Robert Boehne  <rboehne@gnu.org>
 
        * ltmain.in: Revert the version +1 change for IRIX, it could
index 7373e0e2ef8b89dc04e15a18fd65f0f429893c97..17eac52293331ef730bcb749902eeefb8969654e 100644 (file)
@@ -2870,6 +2870,16 @@ case $host_os in
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
        ;;
+      icpc)
+       # Intel C++
+       with_gnu_ld=yes
+       _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
+       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
+       _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
+       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
+       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
+       ;;
       cxx)
        # Compaq C++
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
@@ -4328,6 +4338,12 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
            ;;
+         icpc)
+           # Intel C++
+           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption,ld,'
+           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+           _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
+           ;; 
          cxx)
            # Compaq C++
            # Make sure the PIC flag is empty.  It appears that all Alpha
@@ -4537,6 +4553,14 @@ AC_MSG_CHECKING([for $compiler option to produce PIC])
       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
       ;;
 
+    linux*)
+      if test "$CC" = "icc"; then
+       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption,ld,'
+       _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
+       _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
+      fi
+      ;;
+
     osf3* | osf4* | osf5*)
       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
       # All OSF/1 code is PIC.