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: Albert Chin
Subject: Re: Need help with libtool on Solaris
Date: Wed, 11 Feb 2004 16:50:12 -0600
User-agent: Mutt/1.4i

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)




reply via email to

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