[CMake] Where to change default link line on Cmake

Brad King brad.king at kitware.com
Tue May 4 16:36:00 EDT 2010


Rene Salmon wrote:
> 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

What version of CMake?

Is this xlc on Linux?

Did you try to switch the compiler after creating the build tree?

-Brad


More information about the CMake mailing list