I tried it, and this version works for me. Your probably do not need to add the m4 subdir under libasan. The required m4 files are either in .. or ../config dir. See how libmudflap does it.
Other than that, if there are no other comments, the change is good to check into the branch. Remaining bugs can always be found and fixed later. thanks, David On Thu, Oct 18, 2012 at 8:04 PM, Wei Mi <w...@google.com> wrote: > Hi, > > David cought a problem in the last patch when he tries to built > libasan. The problem was that an incomplete libtool under libasan > build directory was generated. The cause is that the old patch used an > old ltmain.sh to generate libtool. I fix it and attach a new patch. > And the new patch move -lpthread and -ldl to libasan LDFLAGS. > > Thanks, > Wei.