<div dir="ltr">I don't have any details on what gcc does or doesn't need, but it's a nice project.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 8, 2014 at 6:11 AM, Steven Honeyman <span dir="ltr"><<a href="mailto:stevenhoneyman@gmail.com" target="_blank">stevenhoneyman@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I've been setting up a build script for a tiny(for modern day<br>
standards!) initramfs environment so that I can "repurpose" computers<br>
to use as distccd servers without touching the OS on the hard disk.<br>
<br>
This is basically just a trimmed linux kernel, busybox, glibc, gcc,<br>
and of course distccd (+avahi +dbus, grrr!)<br>
<br>
It's working perfectly right now, the size is around 51MB total (using<br>
latest linux 3.16+gcc4.9.1), but I still want to trim it down further!<br>
Could someone give me a list of the actual requirements of gcc, for<br>
distccd to work successfully? I tried randomly plucking files from it<br>
- not a good idea it seems!<br>
As I understand it, distccd only should need to be able to compile<br>
preprocessed files, so should it still work after I remove the linker,<br>
headers(from libexec), lto-wrapper, etc?<br>
<br>
Here's my gcc configure for the current working setup in case there is<br>
something else I can exclude but haven't found yet:<br>
<br>
../gcc-4.9.1/configure --prefix=/usr --libdir=/usr/lib<br>
--libexecdir=/usr/lib --mandir=/usr/share/man --enable-languages=c,c++<br>
--disable-nls --disable-multilib --disable-werror --with-system-zlib<br>
--enable-clocale=gnu --enable-checking=release --enable-threads=posix<br>
--without-headers --disable-libatomic --disable-libgomp<br>
--disable-libitm --disable-libquadmath --disable-libsanitizer<br>
--disable-libssp --disable-libvtv --disable-libcilkrts<br>
--disable-libstdcxx --disable-libstdcxx-pch --disable-libstdc++-v3<br>
--disable-libada --disable-libunwind-exceptions --disable-debug<br>
--disable-bootstrap --disable-plugin --disable-lto --disable-shared<br>
--enable-static<br>
<br>
I expect gmail will make a mess of that - in my script it is nicely<br>
broken into smaller lines, I promise!<br>
Also, one final question I'm almost ashamed I need to ask - will<br>
leaving cloog and isl out of the build have any effect on the code it<br>
outputs from preprocessed source... or are they just to optimize the<br>
compiler itself?<br>
<br>
<br>
Any help or feedback would be appreciated,<br>
<br>
Steven.<br>
__<br>
distcc mailing list            <a href="http://distcc.samba.org/" target="_blank">http://distcc.samba.org/</a><br>
To unsubscribe or change options:<br>
<a href="https://lists.samba.org/mailman/listinfo/distcc" target="_blank">https://lists.samba.org/mailman/listinfo/distcc</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Martin<br>
</div>