diff options
author | Jani Taskinen <jani@php.net> | 2009-01-15 14:37:07 +0000 |
---|---|---|
committer | Jani Taskinen <jani@php.net> | 2009-01-15 14:37:07 +0000 |
commit | 14ef890d580cfe5a36aedfe2437a90a8505827b2 (patch) | |
tree | 1d6a00e81a813fd1430a81df6a1899b093f4decb /build/libtool.m4 | |
parent | 16c2f5bdff891c7ec56001d1f19443dda24633e1 (diff) | |
download | php-git-14ef890d580cfe5a36aedfe2437a90a8505827b2.tar.gz |
- Fixed bug #47104 (Linking shared extensions fails with icc)
Diffstat (limited to 'build/libtool.m4')
-rw-r--r-- | build/libtool.m4 | 34 |
1 files changed, 24 insertions, 10 deletions
diff --git a/build/libtool.m4 b/build/libtool.m4 index a4ccb3c7bc..064582c5c7 100644 --- a/build/libtool.m4 +++ b/build/libtool.m4 @@ -4892,12 +4892,18 @@ 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* | ecpc*) - # Intel C++ - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; + ecpc*) + # old Intel C++ for x86_64 which still supported -KPIC. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + icpc*) + # Intel C++, used to be incompatible with GCC. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; pgCC*) # Portland Group C++ compiler. _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' @@ -5138,10 +5144,18 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) linux*) case $cc_basename in - icc* | ecc*) - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + # old Intel for x86_64 which still supported -KPIC. + ecc*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + # icc used to be incompatible with GCC. + # ICC 10 doesn't accept -KPIC any more. + icc*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' ;; pgcc* | pgf77* | pgf90* | pgf95*) # Portland Group compilers (*not* the Pentium gcc compiler, |