This is how I configure my bulids: With ASAN: [bcall@homer ~]$ type tsconfig_asan tsconfig_asan is aliased to `CXXFLAGS="-Werror -fno-omit-frame-pointer -fsanitize=address" CFLAGS="-Werror" ./configure --enable-ccache --enable-experimental-plugins --enable-example-plugins’
Without ASAN: [bcall@homer ~]$ type tsconfig tsconfig is aliased to `CXXFLAGS="-Werror" CFLAGS="-Werror" ./configure --enable-ccache --enable-experimental-plugins’ -Bryan > On Jan 12, 2016, at 12:40 AM, Masakazu Kitajo <mas...@apache.org> wrote: > > Hi there, > > I can enable ASAN with -fsanitize=address flag but I also needed to remove > -no-undefined flag manually from some modules' Makefiles. > > Without the modification, I get link errors such like below: > https://paste.apache.org/5sR6 > > According to the wiki, it seems we can't use ASAN with -no-undefined. > https://github.com/google/sanitizers/wiki/AddressSanitizer > > So my questions are: > - How do you enable ASAN? (How/Where do you specify the flag?) > - How can I avoid the link error without manual modifications? > > My build environment is OS X (Yosemite) with Apple LLVM version 7.0.2 > (clang-700.1.81) > > Thanks, > Masakazu