As per the discussion #1857 add a configuration option to build executables as PIE.
Note, I looked at applying the position independence at a specific cmake target level but after
tracing though the dependencies this top level adjustment is basically the same but fewer lines of
CMake, i.e. we need to set the flag for all object files used in a given executable.
As per the discussion #1857 add a configuration option to build executables as PIE.
Note, I looked at applying the position independence at a specific cmake target level but after tracing though the dependencies this top level adjustment is basically the same but fewer lines of CMake, i.e. we need to set the flag for all object files used in a given executable.
Signed-off-by: Kevin Wheatley kevin.wheatley@framestore.com