[CMake] Suppressing -rdynamic

Gonzalo Garramuño ggarra at advancedsl.com.ar
Sat Oct 6 02:25:23 EDT 2007


I'm compiling under Linux and it seems like cmake is automatically 
adding -rdynamic to my build.
This switch is okay for debug builds and open source tools, but for 
closed source it is a big problem.
This switch is unfortunately exposing some unwanted functions in my 
code, like the licensing functions.
This makes the functions easily available by using objdump -T or nm -D, 
even if the executable has been stripped.

Is there a way to suppress the use of this switch?

-- 
Gonzalo Garramuño
ggarra at advancedsl.com.ar

AMD4400 - ASUS48N-E
GeForce7300GT
Kubuntu Edgy



More information about the CMake mailing list