> > I have two questions: > 1. How can I tell clang that these two files are under directory > /opt/extra ? I don't mind write a simple patch to clang, of course, > simpler solutions like build time options or command line options are > much better. > 2. Since crtbegin.o/crtend.o are part of a compiler, why don't clang > provide one itself ? Google results showed that these two files seem > to be quite simple, are there any patent/copyright issues related ? >
1. Trying adding "-B/opt/extra" into your clang invocation. 2. The crt begin/end files are considered part of the standard library, not the compiler.
_______________________________________________ cfe-users mailing list cfe-users@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users