[cfe-users] crtbegin.o/crtend.o search path

Douglas Katzman via cfe-users cfe-users at lists.llvm.org
Mon Sep 28 10:42:34 PDT 2015

> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20150928/aa2516f7/attachment.html>

More information about the cfe-users mailing list