From: Albert Chin-A-Young Date: Sat, 26 Aug 2000 13:16:19 +0000 (+0000) Subject: * ltcf-cxx.sh (old_archive_cmds): With IRIX C++ 7.3.1.1m, CC -ar X-Git-Tag: multi-language-merge-point~174 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f69edf077fe81e6e197a61dfcde4fc7cc7da6041;p=thirdparty%2Flibtool.git * ltcf-cxx.sh (old_archive_cmds): With IRIX C++ 7.3.1.1m, CC -ar must be used to create archive libraries, not ar. --- diff --git a/ChangeLog b/ChangeLog index 9ccfcd365..9c3d44e52 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-08-26 Albert Chin-A-Young + + * 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 * ltmain.in (shtool): Use echo|grep instead of expr, as in the diff --git a/ltcf-cxx.sh b/ltcf-cxx.sh index 44dcccb86..3f086f134 100644 --- a/ltcf-cxx.sh +++ b/ltcf-cxx.sh @@ -7,7 +7,7 @@ # Copyright (C) 1996-1999,2000 Free Software Foundation, Inc. # Originally by Gordon Matzigkeit , 1996 # -# Original C++ support by: +# Original C++ support by:Gary V. Vaughan # Alexandre Oliva # Ossama Othman # Thomas Thanner @@ -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