mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
gcc: compile gfortran
This commit is contained in:
+2
-2
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user