James,

I took a look again at our source and notices, that we set
CMAKE_BUILD_TYPE to Custom, so no default options migrate into our
environment.

I think you receive -Wl,-Bdynamic from
cmake/Modules/Platform/Linux.cmake:25:  SET(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS 
"-Wl,-Bdynamic")

My system is Gentoo Linux. Cmake is 2.6.4.

find /usr/share/cmake/Modules/Platform -type f | xargs grep -n -H 
'\-Wl\,\-Bdynamic'

Denis

> Now the only problem I have is that "-Wl,-Bdynamic
> -Wl,-rpath,/usr/local/lib" is still added to the end
> of the linker
> commandline - which is a bug, since no dynamic libs are
> linked.
> Any ideas how to work-around this or how to track down why
> and where this
> empty "-Wl,-Bdynamic" flag is added?



      
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to