================ Comment at: test/profile/lit.cfg:28 @@ +27,3 @@ +if config.host_os in ['Linux']: + extra_linkflags += ["-ldl"] + ---------------- I believe you should actually use extra_linkflags somewhere (e.g. in build_invocation). http://reviews.llvm.org/D5650