sun cc doesn't find some libraries when instructed to compile in 64 bit
To illustrate:
# CC -xO3 -lssl
Undefined first referenced
symbol in file
main /opt/sunstudio12.1/prod/lib/crt1.o
__udivdi3 /usr/lib/libcrypto.so.0.9.8
__umoddi3 /usr/lib/libcrypto.so.0.9.8
ld: fatal: Symbol referencing errors. No output written to a.out
# CC -xO3 -m64 -lssl
ld: fatal: library -lssl: not found
ld: fatal: File processing errors. No output written to a.out
I also note that:
# echo $LD_LIBRARY_PATH
/opt/csw/gcc4/lib/64
# echo $LD_LIBRARY_PATH_64
<empty line>
Hence, acco开发者_Go百科rding to this page, ld's path lookup should be identical for both cases, which it most obviously isn't...
does anyone know how to get around this issue? Thanks in advance
精彩评论