This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Linux x86 to Solaris Sparc Cross Compiler


On Thu, 23 Mar 2000, Kai Ruottu wrote:
>  I have only Solaris2.7 libs, but the 'dgettext' is in 'libc.so' :
I found it in libintl.so on Solaris 2.5.1 

>  A native linker finds the 'libdl.so.1' automatically, but a
> cross-compiler
> needs the '-rpath-link' to point to the library directory. Or you can
> link
> always against 'libdl.so' (if not producing statically linked
> executables).
> So please add a '-ldl' after the '-lc' in 'specs', so that the end of
> the
> '*lib:' spec would be something like :
> 
>         ... %{!pthreads: %{threads: -lthread}} -lc %{!static: -ldl}}}
> 
>  Or add the '-rpath-link <your_solaris2.5_libdir>' into the '*link:'
> spec.
> 

So I added "-rpath-link /mydir/sparc-sun-solaris2.5.1/lib"  
So it looks like this
 %{shared:-G -dy -rpath-link /mydir/sparc-sun-solaris2.5.1/lib
%{!mimpure-text:-z text}}  

Works great!  My laptop can now compile my product faster than than network
based build on a UltraSparc 270Mhz (You should see my Dual PIII 500 linux box
do it).

Thanks agian Kai.

-- 
Alex Smith
Software Engineer
Intruder Alert
Axent Technologies, Inc.
(801) 227-3711
alex@securesmith.net

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]