[Top][All Lists]

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

Re: Problems with cvs-libtool and Solaris CC

From: Erik Assum
Subject: Re: Problems with cvs-libtool and Solaris CC
Date: 17 Jan 2003 13:31:55 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

* Albert Chin
| On Wed, Jan 08, 2003 at 10:13:10AM +0100, Erik Assum wrote:
| > * Robert Boehne
| > | Could you give a bit more detail as to what the problem is?
| > | You say it compilains about "x", could you send us an
| > | error message?
| > 
| > Of course!
| > 
| > [ snip snip ]
| > (cd .libs/libtango.lax/libclient.a && /opt/SUNWspro/bin/CC -xar x
| > 
| > 
| > CC: Outfile required when -xar flag is used
| > 
| > As you see, CC is called with -xar, which I believe is correct, but I
| > don't know what the `x' is supposed to do. As you saw in the previous
| > mail, I found the following bit of code in the generated libtool:
| > 
| > | > # The archiver.
| > | > AR="/opt/SUNWspro/bin/CC -xar"
| > | > AR_FLAGS="-o"
| > 
| > Which seems to be correct, but further down.
| Sun C++ requires /opt/SUNWspro/bin/CC -xar to *create* archives.
| However, it appears we cannot use this to *extract* archives. Bummer.
| So, do we need a separate AR_x variable to control the path to an AR
| used to extract archives?
| If you look at a Sun C++ .a archive file, you'll find the .o files
| archived and other .o files (objects of template functions I guess).
| Any idea how to properly extract a Sun C++ archive? /usr/bin/ar
| wouldn't pull out the extra .o files.


I'm not able to see if your answer was a response to my initial
problem, that is, that when trying to create a static library with
Solaris CC and libtool, the CC barfs on `CC -xar x' and not on `CC
-xar'. Or are you explaining to me that the `CC -xar x' command is a
way of telling CC to use ar to extract something.

I'm sorry if this is a stupid question, but I'm not to well versed in
these matters.



reply via email to

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