I'm trying to build cmake with clang + ASan in order to run cmake's tests under ASan. Most everything works, but there's one test where I get:
Undefined symbols for architecture x86_64:
"___asan_init_v4", referenced from:
_asan.module_ctor in libfoo.a(foo.cpp.o)
ld: symbol(s) not found for architecture x86_64
This is on OS X 10.8, with clang trunk from a couple of days ago.
Googling ___asan_init_v4 yields next to nothing. What might be going wrong here?