how to disable library / address space randomization ?

I’m building lldb on OSX 10.6.3 and for reproducibility of memory addresses, I’d like to disable address space randomization.

What I tried that didn’t work…

root@AtenMBP-2:/$ sysctl -w kernel.randomize_va_space=0
top level name kernel in kernel.randomize_va_space is invalid

Anyone know better?

Thank you.


Try to set this env var: