I'm using clang, llvm to compile MySQL and do some analysis. But the link stage is very time consuming(+5min) and I actually do not need the final executable. Only interested in several object files, which are successfully generated before the linking.
What I tried is to export LD AR to /bin/true but it then cannot compile saying no rule to make target xx.a. In general, is there a way to modify the makefile(from automake) only compile but not link?