[CMake] statically linked executables

Daniel Rueckert dr at doc.ic.ac.uk
Tue Nov 27 11:47:09 EST 2007


Hi,

I am trying to build some statically linked executables on a linux
box. I have added the "-static" option to the linker flags and specified
static link libraries but for some reason cmake still adds the option
"-Wl,-Bdynamic" flag to the linker options. Is there any way around this?

Thanks, Daniel
-- 
Daniel Rueckert, Ph.D.
Department of Computing
Imperial College London
180 Queens' Gate                         Tel: +44 20 7594 8333
London SW7 2AZ                           Fax: +44 20 7581 8024
mailto:D.Rueckert at imperial.ac.uk         http://www.doc.ic.ac.uk/~dr


More information about the CMake mailing list