From: Bob McElrath Date: Wed, 26 Feb 2003 07:01:40 +0000 (+0000) Subject: * libtool.m4 (AC_LIBTOOL_PROG_COMPILER_PIC): Add support for X-Git-Tag: release-1-5~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=98eaee035f3ca368b586352815107cf95ffb2318;p=thirdparty%2Flibtool.git * libtool.m4 (AC_LIBTOOL_PROG_COMPILER_PIC): Add support for the Compaq C compiler for Alpha Linux. --- diff --git a/ChangeLog b/ChangeLog index 6230f5533..a98781f30 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-02-25 Bob McElrath + + * libtool.m4 (AC_LIBTOOL_PROG_COMPILER_PIC): Add support for + the Compaq C compiler for Alpha Linux. + 2003-02-25 Benjamin Reed * libtool.m4 (darwin): Disable hardcoding library paths to diff --git a/libtool.m4 b/libtool.m4 index 345b8c035..ac4a52c87 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -4749,11 +4749,18 @@ AC_MSG_CHECKING([for $compiler option to produce PIC]) ;; linux*) - if test "$CC" = "icc"; then + case $cc_basename in + icc) _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' - fi + ;; + ccc) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All Alpha code is PIC. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + esac ;; osf3* | osf4* | osf5*)