tasks: configure: args: host: 'platform' target: 'platform' parent: recipe: 'gcc' task: 'compile' depends: - recipe: 'gcc' task: 'header-stubs' run: | cd {{name}}-build make configure-target-libgcc # A hack borrowed from OpenEmbedded: # We can build an initial libgcc without having to rebuild the whole gcc # afterwards by manipulating the Makefile sed -i -r \ -e 's@^(INHIBIT_LIBC_CFLAGS =).*@\1 -Dinhibit_libc@' \ gcc/libgcc.mvars sed -i -r \ -e 's@^(thread_header =).*@\1 gthr-single.h@' \ -e 's@^(enable_shared =).*@\1 no@' \ {{target.gnu_triplet}}/libgcc/Makefile compile: args: host: 'platform' target: 'platform' parent: task: 'configure' run: | cd {{name}}-build make all-target-libgcc install: args: host: 'platform' target: 'platform' parent: task: 'compile' output: default: {} run: | cd {{name}}-build make DESTDIR={{destdir}} install-target-libgcc ln -s libgcc.a {{destdir}}{{host.prefix}}/lib/gcc/{{target.gnu_triplet}}/"$(cat ../{{name}}-{{version}}/gcc/BASE-VER)"/libgcc_eh.a