Hi, The profiling library (lib/libprofile_rt.bca built with gmake from runtime/libprofile) generates an archive with a profile_rt.o file that is actually a shell script, a wrapper around lli. I found the error in Makefile.rules, but I do know where else this needs to change (CMake and such.) The change to Makefile.rules is attached. Thanks, -------------- next part -------------- A non-text attachment was scrubbed... Name: RulesLinkAsLibrary.diff Type: text/x-patch Size: 370 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090608/5d5636d0/attachment.bin>