]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (AC_LIBTOOL_PROG_COMPILER_PIC): Add support for
authorBob McElrath <bob+libtool@mcelrath.org>
Wed, 26 Feb 2003 07:01:40 +0000 (07:01 +0000)
committerRobert Boehne <rboehne@gnu.org>
Wed, 26 Feb 2003 07:01:40 +0000 (07:01 +0000)
the Compaq C compiler for Alpha Linux.

ChangeLog
libtool.m4

index 6230f553397d36cbacb22c4de74ba8f9b201af00..a98781f30a838101e37a578072d7d71c5b1a5c2c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-25  Bob McElrath  <bob+libtool@mcelrath.org>
+
+       * libtool.m4 (AC_LIBTOOL_PROG_COMPILER_PIC): Add support for
+       the Compaq C compiler for Alpha Linux.
+
 2003-02-25  Benjamin Reed  <ranger@befunk.com>
 
        * libtool.m4 (darwin): Disable hardcoding library paths to
index 345b8c035ca65c044cd28d42f92050f48e711818..ac4a52c8769f65e9526bf03f2321e9385f0054b9 100644 (file)
@@ -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*)