On 12/13/2012 09:15 AM, David Rusling wrote:
All,
I'm rebuilding things on F18, the good news is that the webrtc fixes are
the same. Anyone know what the bootstrap variable in nacl-gcc.spec is
for? If < 1 it pulls in nacl-newlib which, in turn, depends on
nacl-gcc (and doesn't have a bootstrap variable / mode)....
Look in the spec, that's an RPM macro:
%if %{bootstrap}
--disable-threads \
--enable-languages="c" \
--without-headers \
CFLAGS_FOR_TARGET="-O2 -g" \
CXXFLAGS_FOR_TARGET="-O2 -g" \
%else
CFLAGS_FOR_TARGET="-O2 -g -mtls-use-call
-I/usr/x86_64-nacl/include/" \
CXXFLAGS_FOR_TARGET="-O2 -g -mtls-use-call
-I/usr/x86_64-nacl/include/" \
--enable-threads=nacl \
--enable-languages="c,c++,objc" \
--enable-tls \
--with-newlib \
%endif
Basically, at the very first bootstrap, we can't build nacl-gcc against
nacl-newlib (the optimal configuration, because newlib enables
threading), so we disable threading and build a minimal nacl-gcc for C
only. Then, build nacl-newlib. Then, flip %{bootstrap} off and rebuild
nacl-gcc.
~tom
==
Fedora Project