
22 Mar
2005
22 Mar
'05
5:19 p.m.
In my testing, I have found that you can't use "gcc -static" on Solaris if you have *any* shared libs to link with. It overrides even later uses of -Wl,-Bdynamic (in fact using both -static and -Wl,-Bdynamic causes a linker error - see below).
Darn.
If you want to link with static versions of some libs and dynamic versions of others (as one must in the case of the Boost.Thread tests which use -lpthread and -lrt for which no static versions exist), it appears that the only way to do this is to specify the static libs as fully qualified filenames (e.g. /path/to/libfoo.a). See the examples below:
Double darn :-( I guess there's no easy way to fix this then, pity. Thanks for trying, John.