Please add upstream patch to dev-util/cmake to fix compatibility with -Wl,--gc-sections. Many packages which use dev-util/cmake fail to compile without this patch when -Wl,--gc-sections is used. http://www.cmake.org/pipermail/cmake/2008-August/023240.html http://www.cmake.org/pipermail/cmake-commits/2008-August/004477.html
Created attachment 163783 [details, diff] cmake-gc-sections.patch
cmake-2.6.1 applying the patch is now in CVS, thanks!