Dear All,
I'm new to OpenSolaris and trying to compile my program with gcc (gcc version 
3.4.3 (csl-sol210-3_4-20050802)). But I'm unable to link the program with 
static libraries. Here is the corresponding linker flags:
-Wl,--whole-archive -lapr-1 -laprutil-1 -lexpat -Wl,--no-whole-archive

I have my own libapr-1.a, libaprutil-1.a and libexpat.a and use -L switches to 
point gcc where the are. 

But the resulting executable depends on shared libraries:
        libapr-1.so.0 =>         (file not found)
        libaprutil-1.so.0 =>     (file not found)
        libexpat.so.0 =>         /usr/lib/libexpat.so.0

How to use static libraries?
-- 
This message posted from opensolaris.org

Reply via email to