On Tue, Jan 24, 2012 at 02:59:43PM +0400, Serguey Kuritsin wrote:
> I just want to learn how to do it. And I know it is possible. I do not
> expect extensive learning from someone who will explain me the meaning
> of every line in every makefile and build system configs. I just want to
> some starting points. If I fail it will be a good experience too.

Libc can be found in /usr/src/lib/libc and uses the normal makefiles in
OpenBSD. Setting the C compiler in env (setenv CC ...) should do the
trick.
Remember that it's your own foot you're pointing that gun at.

> > I think this would be a good case of "If you don't know how to do it,
> > it is the wrong solution to your problem".
> > Or, you will get a really decent amount of training in how to recover
> > broken installations.
> > 
> > 2012/1/24 Serguey Kuritsin <[email protected]>:
> > > I need to compile libc with different compiler (llvm) separately from
> > > other parts of source tree (i.e. compilation of other parts is
> > > unnecessary) and keep it in special directory (both includes and libs).
> > > Can you please give me some clues how to perform it? Some pointers to
> > > Make infrastructure would be great.

The man page for make should be a good starting point. General info on
how to use make is available in both books and the web.
The special make includes are located in /usr/share/mk/ and are worthy
of reading.
-- 
Ariane

Reply via email to