Hi, I tried searching the list archives but did not find and answer to my problem. I am fairly new to Cmake so maybe I just don't know exactly what to look for.
I installed Cmake on an IBM power machine that only had the gcc compilers. I am guessing that is where and how cmake is determining what a good link line would be. Now I am trying to use cmake to build on a machine that has the xlc and xlf compilers. When I try to bild I get this: xlc_r -O3 -qhot CMakeFiles/fd3ptr.dir/fd3ptr.c.o -o fd3ptr -rdynamic xlc_r: 1501-216 (W) command option -dynamic is not recognized - passed to ld /usr/bin/ld: unrecognized option '-dynamic' /usr/bin/ld: use the --help option for usage information Basically cmake is throwing in the "-rdynamic" flag to xlc to link in my binaries. That would probably work if I where using gcc but xlc does not like that flag. The question is where does cmake set this flag? What is the recommended way to change this flag or clear it? I tried: set (CMAKE_C_LINK_EXECUTABLE "-W,-Bdynamic") but that more or less just cleared everything else which is really not what I want I simply want to replace "-rdynamic" with "-W,-Bdynamic" Thanks Rene _______________________________________________ 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