gcc: compile gfortran

This commit is contained in:
Matheus
2026-08-13 23:15:03 -03:00
parent 83610d9493
commit de86d1f926
8 changed files with 74 additions and 4 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
name=gcc
revision=2
revision=4
from_source=gcc
imagedeps="build-essential"
hostrundeps="automake autoconf xgcc xbinutils libstdc++-v3"
@@ -7,7 +7,7 @@ deps="base gmp mpfr mpc binutils"
clean_workdirs=no
configure() {
${source_dir}/configure --host=x86_64-astral --target=x86_64-astral --prefix=${prefix} --enable-languages=c,c++ --enable-threads=posix --enable-libgomp --with-sysroot=/ --with-build-sysroot=${sysroot_dir}
${source_dir}/configure --host=x86_64-astral --target=x86_64-astral --prefix=${prefix} --enable-languages=c,c++,fortran --enable-threads=posix --enable-libgomp --with-pic --with-sysroot=/ --with-build-sysroot=${sysroot_dir}
}
build() {
+17
View File
@@ -0,0 +1,17 @@
name=libgfortran
revision=1
from_source=gcc
imagedeps="build-essential"
hostrundeps="xgcc xbinutils libstdc++-v3"
clean_workdirs=no
deps="gcc libquadmath"
build() {
cd ${build_dir}/builds/gcc
make all-target-libgfortran -j${parallelism}
}
package() {
cd ${build_dir}/builds/gcc/x86_64-astral/libgfortran
make DESTDIR="${dest_dir}" install
}
+17
View File
@@ -0,0 +1,17 @@
name=libquadmath
revision=1
from_source=gcc
imagedeps="build-essential"
hostrundeps="xgcc xbinutils libstdc++-v3"
clean_workdirs=no
deps="gcc"
build() {
cd ${build_dir}/builds/gcc
make all-target-libquadmath -j${parallelism}
}
package() {
cd ${build_dir}/builds/gcc
make DESTDIR="${dest_dir}" install-target-libquadmath
}