mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-01-18 14:16:00 +08:00
* libtool.m4: Add support for Intel icc compiler for Linux.
This commit is contained in:
parent
9fdc16a497
commit
9980ffc894
@ -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>
|
2002-12-11 Robert Boehne <rboehne@gnu.org>
|
||||||
|
|
||||||
* ltmain.in: Revert the version +1 change for IRIX, it could
|
* ltmain.in: Revert the version +1 change for IRIX, it could
|
||||||
|
24
libtool.m4
vendored
24
libtool.m4
vendored
@ -2870,6 +2870,16 @@ case $host_os in
|
|||||||
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
|
||||||
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
|
_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)
|
cxx)
|
||||||
# Compaq C++
|
# Compaq C++
|
||||||
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
|
_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_wl, $1)='--backend -Wl,'
|
||||||
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
|
_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)
|
cxx)
|
||||||
# Compaq C++
|
# Compaq C++
|
||||||
# Make sure the PIC flag is empty. It appears that all Alpha
|
# 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'
|
_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*)
|
osf3* | osf4* | osf5*)
|
||||||
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
|
||||||
# All OSF/1 code is PIC.
|
# All OSF/1 code is PIC.
|
||||||
|
Loading…
Reference in New Issue
Block a user