Linux x86 to Solaris Sparc Cross Compiler
Alex Smith
alex@securesmith.net
Sat Apr 1 00:00:00 GMT 2000
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
More information about the crossgcc
mailing list