A related question is whether those are even the correct flags for the CMAKE_${type}_LINK_DYNAMIC_${lang}_FLAGS. According to the compiler reference manual, -Wl,-a,default will search for shared first, then use static if the shared lib is not present. Changing this to -Wl,-a,shared will make the search use shared libraries exclusively, which is how all the other platforms work. It's outside the scope of this branch but should it be changed in a separate branch?
- Chuck On Mon, Aug 10, 2015 at 12:00 PM, Chuck Atkins <chuck.atk...@kitware.com> wrote: > > the C compiler is getting used as the linker for shared libs >> >> It looks like this has been the case since CMake 2.8.7: >> > > Easy then. I'll just fix it to use -Wl,-a like all the others. Thanks. > >
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers