[gmx-developers] Re: help needed: static builds with cmake
szilard.pall at cbr.su.se
Fri Oct 29 18:11:00 CEST 2010
> Don't know about HPUX. Cygwin should work too. And even MingW. If you
> use CMAKE_STATIC_LIBRARY_SUFFIX which is lib for MingW. How about you just
> disable the option if CMAKE_STATIC_LIBRARY_SUFFIX is not set by Cmake?
Doesn't Cygwin use dll-s and .lib-s? To be honest I don't remember
anymore and unless someone can test it's better to be left off, isn't
What does and empty CMAKE_STATIC_LIBRARY_SUFFIX mean? Also, the fact
that CMake sets CMAKE_STATIC_LIBRARY_SUFFIX does not necessarily mean
that I know what to prepend to the list to prioritize static libs;
e.g. if CMAKE_STATIC_LIBRARY_SUFFIX contains " .sfoo .dbar" where on
platform X -sfoo is static and -dbar is dynamic library. Now, if I
just prepend ".a" it does not hurt much. However, I'd rather avoid
doing that on a random X as it very likely that it's useless, and it
might also pose a security risk to try to link against a ".a" on
platform X (from galaxy Y :)...
I've just pushed a bunch of patches, could you please try them before
we release (which will probably happen today).
More information about the gromacs.org_gmx-developers