[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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-users