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:
@@ -0,0 +1,17 @@
|
|||||||
|
name=libgfortran
|
||||||
|
revision=1
|
||||||
|
from_source=gcc
|
||||||
|
imagedeps="build-essential"
|
||||||
|
hostdeps="automake autoconf xbinutils xgcc libquadmath"
|
||||||
|
clean_workdirs=no
|
||||||
|
deps="mlibc"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd ${build_dir}/host-builds/xgcc
|
||||||
|
make all-target-libgfortran -j${parallelism}
|
||||||
|
}
|
||||||
|
|
||||||
|
package(){
|
||||||
|
cd ${build_dir}/host-builds/xgcc/x86_64-astral/libgfortran
|
||||||
|
make DESTDIR="${dest_dir}" install
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
name=libquadmath
|
||||||
|
revision=1
|
||||||
|
from_source=gcc
|
||||||
|
imagedeps="build-essential"
|
||||||
|
hostdeps="automake autoconf xbinutils xgcc"
|
||||||
|
clean_workdirs=no
|
||||||
|
deps="mlibc"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd ${build_dir}/host-builds/xgcc
|
||||||
|
make all-target-libquadmath -j${parallelism}
|
||||||
|
}
|
||||||
|
|
||||||
|
package(){
|
||||||
|
cd ${build_dir}/host-builds/xgcc
|
||||||
|
make DESTDIR="${dest_dir}" install-target-libquadmath
|
||||||
|
}
|
||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
name=xgcc
|
name=xgcc
|
||||||
revision=2
|
revision=3
|
||||||
from_source=gcc
|
from_source=gcc
|
||||||
imagedeps="build-essential libmpfr-dev libmpc-dev libgmp-dev"
|
imagedeps="build-essential libmpfr-dev libmpc-dev libgmp-dev"
|
||||||
hostdeps="automake autoconf xbinutils pkgconfig"
|
hostdeps="automake autoconf xbinutils pkgconfig"
|
||||||
@@ -7,7 +7,7 @@ deps="mlibc-headers"
|
|||||||
clean_workdirs=no
|
clean_workdirs=no
|
||||||
|
|
||||||
configure() {
|
configure() {
|
||||||
${source_dir}/configure --target=x86_64-astral --prefix=${prefix} --with-sysroot=${sysroot_dir} --enable-languages=c,c++ --enable-threads=posix --enable-libgomp --disable-multilib --enable-shared --enable-host-shared --with-pic
|
${source_dir}/configure --target=x86_64-astral --prefix=${prefix} --with-sysroot=${sysroot_dir} --enable-languages=c,c++,fortran --enable-threads=posix --enable-libgomp --disable-multilib --enable-shared --enable-host-shared --with-pic
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
|||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
name=gcc
|
name=gcc
|
||||||
revision=2
|
revision=4
|
||||||
from_source=gcc
|
from_source=gcc
|
||||||
imagedeps="build-essential"
|
imagedeps="build-essential"
|
||||||
hostrundeps="automake autoconf xgcc xbinutils libstdc++-v3"
|
hostrundeps="automake autoconf xgcc xbinutils libstdc++-v3"
|
||||||
@@ -7,7 +7,7 @@ deps="base gmp mpfr mpc binutils"
|
|||||||
clean_workdirs=no
|
clean_workdirs=no
|
||||||
|
|
||||||
configure() {
|
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() {
|
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
|
||||||
|
}
|
||||||
@@ -5,6 +5,7 @@ set(CMAKE_FIND_ROOT_PATH /sysroot)
|
|||||||
|
|
||||||
set(CMAKE_C_COMPILER x86_64-astral-gcc)
|
set(CMAKE_C_COMPILER x86_64-astral-gcc)
|
||||||
set(CMAKE_CXX_COMPILER x86_64-astral-g++)
|
set(CMAKE_CXX_COMPILER x86_64-astral-g++)
|
||||||
|
set(CMAKE_Fortran_COMPILER x86_64-astral-gfortran)
|
||||||
|
|
||||||
# search for programs in the build host directories
|
# search for programs in the build host directories
|
||||||
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ endian = 'little'
|
|||||||
[binaries]
|
[binaries]
|
||||||
c = 'x86_64-astral-gcc'
|
c = 'x86_64-astral-gcc'
|
||||||
cpp = 'x86_64-astral-g++'
|
cpp = 'x86_64-astral-g++'
|
||||||
|
fortran = 'x86_64-astral-gfortran'
|
||||||
ar = 'x86_64-astral-ar'
|
ar = 'x86_64-astral-ar'
|
||||||
strip = 'x86_64-astral-strip'
|
strip = 'x86_64-astral-strip'
|
||||||
ld = 'x86_64-astral-ld'
|
ld = 'x86_64-astral-ld'
|
||||||
|
|||||||
Reference in New Issue
Block a user