32 and 64 bit apps on Solaris 10



I have a new solaris 10 v440 server, and this is my first 64 bit and
Solaris 10 install.

When I compile (ie) openssl, defining only LD_LIBRARY_PATH and
pointing it to the 64 bit libraries, it compiles fine.

I read that if you define LD_LIBRARY_PATH32 and LD_LIBRARY_PATH64 to
point to the appropriate libraries, it should compile fine. So I
added those variables (along with LD_LIBRARY_PATH pointing to 32 bit
libs), and it fails and I got ELF32 errors cause I was compiling 64
bit. So I removed the LD_LIBRARY_PATH variable and the compile goes
much further but fails saying it can't find gcclib.s.so.1. I search
for that file and it is in the directory specified by
LD_LIBRARY_PATH64. I do NOT get any ELF32 or ELF64 errors.

I have to get this environment to work, being able to compile both 32
and 64 bit. Any suggestions? I see alot of people talk about
libtool, but I am unfamiliar with it.

Thanks

.



Relevant Pages