libtool
[Top][All Lists]
Advanced

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

Re: Need help with libtool on Solaris


From: johnny henrik
Subject: Re: Need help with libtool on Solaris
Date: Fri, 13 Feb 2004 10:52:02 -0800 (PST)

Hi,
How do I configure libtool to work with CC compiler?
Please give my some pointer/link ...
 
Thanks

Albert Chin <address@hidden> wrote:
On Wed, Feb 11, 2004 at 02:08:42PM -0800, johnny henrik wrote:
> I am stuck with this issue. Please help
> Our libtool work fine with gnu gcc. now we want to cofigure it to work with /
> opt/SUNWspro/bin/CC compiler. And it fail when it links.
> Notice that it still use "gcc -share" instead of /opt/SUNWspro/bin/CC -shared.
> Why? and how do i make it to use /opt/SUNWspro/bin/CC instead of gcc
>
>
> /usr/local/bin/libtool --mode=link --tag=CC /opt/SUNWspro/bin/CC -I/home/john/
> common/gpslib/source/build/output/sol/include -I/include -L/home/john/common/
> gpslib/source/build/output/sol/lib -L/lib -o libslsmath.la /home/john/common/
> gpslib/source/build/output/sol/objs/slsmath.lo -rpath /home/john/common/gpslib/
> source/build/output/sol/lib
> mkdir .libs
> gcc -shared -Wl,-h -Wl,libslsmath.so.0 -o .libs/libslsmath.so.0.0.0 /home/john
> /common/gpslib/source/build/output/sol/objs/.libs/slsmath.o -L/home/john/
> common/gpslib/source/build/output/sol/lib -L/lib -lc

You cannot use a libtool configured for GCC with the Sun compiler.
Each "libtool" script is custom-generated for a specific compiler.

--
albert chin (address@hidden)


Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online
reply via email to

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