Re[2]: Build libc separately

2012-01-25 Thread Serguey Kuritsin
Thanks!

I've started to explore src/lib/libc/Makefile. It was too easy to
perform: cd src/lib/libc CC=llvm-gcc AR=llvm-ar NM=llvm-nm LD=llvm-ld
make 
The rest is bug-fixing in Makefile.



 On 2012-01-24, Serguey Kuritsin kuritsin_...@mail.ru 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.
 
 Starting point: set CC
 
 
 
  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 kuritsin_...@mail.ru:
   Hello!
  
   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.
  
   I apologize for my English.
  
 
  --
  To our sweethearts and wives. May they never meet. -- 19th century toast



Re[2]: Build libc separately

2012-01-25 Thread Serguey Kuritsin
My requirement is to compile to llvm bitcode not to binary. 
And I must use llvm  2.8.



 On 2012/01/25 17:22, Serguey Kuritsin wrote:
  Thanks!
 
  I've started to explore src/lib/libc/Makefile. It was too easy to
  perform: cd src/lib/libc CC=llvm-gcc AR=llvm-ar NM=llvm-nm LD=llvm-ld
  make
 
  The rest is bug-fixing in Makefile.
 
 Ah, I've only tried CC=clang myself (which works perfectly with no changes
 to the Makefile), I haven't tried replacing the other tools nor using
 llvm-gcc (which is no longer supported in LLVM anyway so you must be
 using an old version).



Re[2]: Build libc separately

2012-01-24 Thread Serguey Kuritsin
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.



 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 kuritsin_...@mail.ru:
  Hello!
 
  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.
 
  I apologize for my English.
 
 
 --
 To our sweethearts and wives. May they never meet. -- 19th century toast