libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: solaris archive_cmds change for sun CC c++ compiler


From: Peter O'Gorman
Subject: Re: solaris archive_cmds change for sun CC c++ compiler
Date: Fri, 22 Jul 2005 21:55:13 +0900
User-agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Albert Chin wrote:
| On Fri, Jul 22, 2005 at 12:26:21AM +0900, Peter O'Gorman wrote:
|
|>Index: libtool.m4
|>===================================================================
|>RCS file: /cvsroot/libtool/libtool/Attic/libtool.m4,v
|>retrieving revision 1.314.2.96
|>diff -u -3 -p -u -r1.314.2.96 libtool.m4
|>--- libtool.m4 8 Jul 2005 15:03:15 -0000 1.314.2.96
|>+++ libtool.m4 21 Jul 2005 15:25:42 -0000
|>@@ -3475,10 +3475,12 @@ case $host_os in
|>     case $cc_basename in
|>       CC*)
|>   # Sun C++ 4.2, 5.x and Centerline C++
|>+  _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
|>+  _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
|>   _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
|>-  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib
- -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects
$compiler_flags'
|>+  _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname
- -o $lib $libobjs $deplibs $compiler_flags'
|>   _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat
$export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };"
$lib.exp~
|>-  $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o
$lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm
$lib.exp'
|>+  $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib
$libobjs $deplibs $compiler_flags~$rm $lib.exp'
|
|
| Why do you remove $predep_objects and $postdep_objects?


Because they are always empty.

Peter

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Darwin)

iQCVAwUBQuDssLiDAg3OZTLPAQJJhwP/aYtjw1Ha6NBKHPhQfeFvRqBjR12FIOxw
l3pzWlDfqUvOk8U8tOIbU2RlN7rxEoLKNeugyCS/FSYU+DH4ksBYqUX3EupX4LHZ
Rhz0eBwqo0HAXHnN0oG0pmCxierbVG0lSO/ma49JcBDfEL150amOMLhHW/sUcolL
esG04N6y5Y4=
=aWzk
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]