Re: NaCl

Nikola Vladov <[email protected]> Sun, 8 Apr 2012 14:33:39 +0300
Newsgroups gmane.linux.lib.dietlibc
Message-ID <[email protected]>
On Wed, Apr 04, 2012 at 01:53:52AM +0100, Jorge Almeida wrote:
> Any idea whether it is possible to compile NaCl against dietlibc? It seems to
> ignore whatever we tell it to use. CC="/opt/bin/diet gcc " ./do compiles with
> no errors, but it still yields dynamically linked binaries.
> 
> Jorge Almeida

I compiled NaCl using dietlibc in such a way (here is the idea)

1) I suppose that your PATH is someting like:
    /home/username/bin:/usr/bin/: ...

2) I make a file (mode 755) ~/bin/gcc with:

#!/bin/sh
exec /opt/diet/bin/diet -Os /path/to/gcc/executable ${1+"$@"}

--------------------------------

This work for me fine.
Nikola