pkg(gcc-10.2.0): Adds Fortran support for GCC (#236)
This commit is contained in:
parent
959830c652
commit
65cbefa94e
|
@ -17,7 +17,7 @@ tar xzf gcc.tar.gz --strip-components=1
|
|||
cd ../obj
|
||||
|
||||
# === autoconf based ===
|
||||
../build/configure --prefix "$PREFIX" --enable-languages=c,c++,d --disable-multilib --disable-bootstrap
|
||||
../build/configure --prefix "$PREFIX" --enable-languages=c,c++,d,fortran --disable-multilib --disable-bootstrap
|
||||
|
||||
make -j$(nproc)
|
||||
make install -j$(nproc)
|
||||
|
|
|
@ -16,6 +16,10 @@ case "${PISTON_LANGUAGE}" in
|
|||
rename 's/.code$/\.d/' "$@" # Add .d extension
|
||||
gdc *.d
|
||||
;;
|
||||
fortran)
|
||||
rename 's/.code$/\.f90/' "$@" # Add .f90 extension
|
||||
gfortran *.f90
|
||||
;;
|
||||
*)
|
||||
echo "How did you get here? (${PISTON_LANGUAGE})"
|
||||
exit 1
|
||||
|
|
|
@ -2,3 +2,4 @@
|
|||
|
||||
# Put 'export' statements here for environment variables
|
||||
export PATH=$PWD/bin:$PATH
|
||||
export LD_LIBRARY_PATH="$PWD/lib:$PWD/lib64" # Need this to properly link Fortran
|
||||
|
|
|
@ -13,6 +13,10 @@
|
|||
{
|
||||
"language": "d",
|
||||
"aliases": ["gdc"]
|
||||
},
|
||||
{
|
||||
"language": "fortran",
|
||||
"aliases": ["fortran", "f90"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
program test
|
||||
print "(a)", 'OK'
|
||||
end program test
|
Loading…
Reference in New Issue