diff --git a/recipes/gcc b/recipes/gcc new file mode 100644 index 00000000..452e44c5 --- /dev/null +++ b/recipes/gcc @@ -0,0 +1,27 @@ +name=gcc +revision=1 +from_source=gcc-cross +imagedeps="base-devel" +hostrundeps="automake autoconf binutils-cross gcc-cross binutils-cross libstdc++-v3" +deps="mlibc gmp mpfr mpc" + + +configure() { + + ${source_dir}/configure --host=x86_64-astral --target=x86_64-astral --prefix=${prefix} --enable-languages=c,c++ + + + +} + +build() { + + make -j${parallelism} all-gcc all-target-libgcc all-target-libstdc++-v3 + +} + +install() { + + make install-gcc install-target-libgcc install-target-libstdc++-v3 DESTDIR="${dest_dir}" + +}