diff options
Diffstat (limited to 'templates/gcc')
| -rw-r--r-- | templates/gcc/template | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/templates/gcc/template b/templates/gcc/template new file mode 100644 index 0000000..47c1a64 --- /dev/null +++ b/templates/gcc/template @@ -0,0 +1,34 @@ +pkgname=gcc +version=16.1.0 +build_no=1 +upstream="${MIRROR_GNU_FTP}/gcc/gcc-${version}/gcc-${version}.tar.gz" + +makedepends=(autoconf mpfr mpc gettext) + +function do_configure { + mkdir build/ + cd build/ + + conf_flags=( + --prefix=/usr + --build=${DISTRO_TC} + --host=${DISTRO_TC} + --target=${DISTRO_TC} + --disable-werror + --disable-multilib + --disable-nls + --enable-host-pie + ) + + ../configure "${conf_flags[@]}" +} + +function do_build { + cd build/ + make -j$(nproc) +} + +function do_install { + cd build/ + make DESTDIR=${DESTDIR} install +} |
