]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltcf-cxx.sh (old_archive_cmds): With IRIX C++ 7.3.1.1m, CC -ar
authorAlbert Chin-A-Young <china@thewrittenword.com>
Sat, 26 Aug 2000 13:16:19 +0000 (13:16 +0000)
committerGary V. Vaughan <gary@gnu.org>
Sat, 26 Aug 2000 13:16:19 +0000 (13:16 +0000)
must be used to create archive libraries, not ar.

ChangeLog
ltcf-cxx.sh

index 9ccfcd3656054fecaa61c1d508a79b9af85b7705..9c3d44e52598e356135ee425f86d0fadef815c91 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-08-26  Albert Chin-A-Young  <china@thewrittenword.com>
+       
+       * ltcf-cxx.sh (old_archive_cmds):  With IRIX C++ 7.3.1.1m, CC -ar
+       must be used to create archive libraries, not ar.
+       
 2000-08-01  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
 
        * ltmain.in (shtool): Use echo|grep instead of expr, as in the
index 44dcccb8651d98205d996d8b28734d3baa8f43a8..3f086f134df88b7de70aa0731661885db81fcb51 100644 (file)
@@ -7,7 +7,7 @@
 # Copyright (C) 1996-1999,2000 Free Software Foundation, Inc.
 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 #
-# Original C++ support by:
+# Original C++ support by:Gary V. Vaughan <gvv@techie.com>
 #    Alexandre Oliva <oliva@lsd.ic.unicamp.br>
 #    Ossama Othman <ossama@debian.org>
 #    Thomas Thanner <tanner@gmx.de>
@@ -209,7 +209,13 @@ case "$host_os" in
       CC)
         # SGI C++
         archive_cmds='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
-        ;;
+
+       # Archives containing C++ object files must be created using
+       # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
+       # necessary to make sure instantiated templates are included
+       # in the archive.
+       old_archive_cmds='$CC -ar -WR,-u -o $oldlib $oldobjs'
+       ;;
       *)
         if test "$with_gcc" = yes; then
           if test "$with_gnu_ld" = no; then