Facilitate linking of static binaries
authorRoland Schulz <roland@utk.edu>
Tue, 17 Mar 2015 04:03:40 +0000 (21:03 -0700)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Wed, 13 May 2015 08:45:38 +0000 (10:45 +0200)
commit88fda4755eeaa360bde13b71ba094ad685720aca
tree6e7e59d87fdfe6e6e47b45e8d4c5c41139659d45
parent9fbe7e5b70cf3a6030daa64e64a7d2f156be653e
Facilitate linking of static binaries

Minimal solution. The user has to manually set both
-DBUILD_SHARED_EXE=no and CFLAGS=CXXFLAGS=-static, perhaps manage
their own toolchain, and certainly make static libraries available for
all dependencies. Also does not auto-detect if compiler defaults to
static (Cray). Works better than LINK_SEARCH_END_STATIC because
otherwise dynamic flags can be added to the middle if some libraries
in default search path exist as both dyanmic and shared.

Fixes #911
Related to #1641

Change-Id: If7b8192b44c33c861f126e3422df04388d2f2be5
CMakeLists.txt
cmake/gmxManageSharedLibraries.cmake
docs/install-guide/install-guide.md