one idea

Nikola Vladov <[email protected]>
Newsgroups gmane.linux.lib.dietlibc
Message-ID <[email protected]>
I tried to build last openssl with
	make CC='diet -Os gcc -nostdinc -s' 
and it fails.  The problem was that Makefile expected one
variable for CC.  Instead of fixing Makefile I tried:

	echo '#!/bin/sh' > /tmp/xgcc
	echo 'exec diet -Os gcc -nostdinc -s ${1+"$@"}' > /tmp/xgcc
	chmod 755 /tmp/xgcc

	make CC=/tmp/xgcc

and the problem was solved.  I think a little after that and come
to the idea to introduce one new environ variable in diet: DIET_CC.
Using it we should type

        DIET_CC='-Os gcc -nostdinc -s' make CC=diet

Then we see on terminal only 'diet' instead 'diet -Os gcc -nostdinc'.
It solves also the problem described above.  If such idea is accepted 
I'll ready to make changes in diet.c.  It's not difficult.

Nikola

PS:  a script to build diet openssh:
http://riemann.fmi.uni-sofia.bg/programs/getssh.diet
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.