I have been happily working along building my shared libraries with GCC,
using the usual: gcc -fPIC -c foo.c
Then I link it with: ld -G -h libfoo.so.1 -o libfoo.so foo.o
and everything is peachy. Today, I tried to do the same thing with the
native compiler, using: cc -pic -c foo.c (and the same ld cmd to link)
but when I then try to link against the lib, it says it can't find any of
the symbols (routines declared in the shared lib). As I say, it works fine
in gcc.
Assuming that there would be some benefit in using the native compiler, is
there any other command line options I need to include to make the symbols
visible?