From 4a0cdc20ad52748d0196deb79c7ad691ef3ed39d Mon Sep 17 00:00:00 2001 From: Matheus Date: Thu, 13 Oct 2022 13:34:08 -0300 Subject: [PATCH] jinx: add gcc port --- recipes/gcc | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 recipes/gcc 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}" + +}