[CMake] Linking with -l and -L flags

Moreland, Kenneth kmorel at sandia.gov
Thu Jan 12 15:44:22 EST 2006


> The problem is that on some systems full paths to libraries 
> cause the compiler to pull in ALL symbols and not just the 
> ones used, sort of like *.o.
> 
> There is a part of cmake that orders the -L paths and should 
> complain if it can not come up with the correct order for 
> full path specified libraries.
> Are you getting a warning, or is the tcl being specified 
> without a full path?

I'm not sure, but the problem seems to be that the linker is favoring
shared object libraries over static libraries regardless of the order of
the -L paths.  Thus, if I want to link in my static Tcl library the
linker never chooses it.

-Ken



More information about the CMake mailing list