libtool does not currently recognize the Compaq C Compiler on
linux/alpha.  Specifically, it does not recognize that it can generate
PIC code and therefore shared libraries.

Attached is a patch against libtool.m4 which should allow this to work.
This is adapted from a patch I found on the web from 1999 (!).  Is there
any problem with including this with future libtool distributions?

Cheers,
Bob McElrath [Univ. of Wisconsin at Madison, Department of Physics]

    "You measure democracy by the freedom it gives its dissidents, not the
    freedom it gives its assimilated conformists." -- Abbie Hoffman

--- libtool.m4  Tue Feb  4 22:06:40 2003
+++ /usr/share/aclocal/libtool.m4       Tue Feb  4 22:27:39 2003
@@ -972,6 +972,21 @@
       fi
       ;;
 
+    linux*)
+      $rm conftest.c
+      cat > conftest.c <<EOF
+  #if defined(__DECC) || defined(__DECCXX)
+    yes;
+  #endif
+  EOF
+      if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:@LINENO@: 
+\"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+        # All DEC C code is PIC.
+        lt_cv_prog_cc_static='-non_shared'
+        lt_cv_prog_cc_wl='-Wl,'
+      fi
+      $rm conftest.c
+      ;;
+
     *)
       lt_cv_prog_cc_can_build_shared=no
       ;;

Attachment: msg03553/pgp00000.pgp
Description: PGP signature

_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool

Reply via email to