aboutsummaryrefslogtreecommitdiffstats
path: root/main/gcc/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/gcc/APKBUILD')
-rw-r--r--main/gcc/APKBUILD13
1 files changed, 12 insertions, 1 deletions
diff --git a/main/gcc/APKBUILD b/main/gcc/APKBUILD
index 5d05b5a2f2..cee61180c1 100644
--- a/main/gcc/APKBUILD
+++ b/main/gcc/APKBUILD
@@ -39,7 +39,7 @@ if [ "$LANG_GO" != "off" ]; then
_languages="$_languages,go"
fi
if [ "$LANG_FORTRAN" != "off" ]; then
- subpackages="$subpackages gfortran libgfortran"
+ subpackages="$subpackages gfortran libgfortran libquadmath"
_languages="$_languages,fortran"
fi
@@ -354,8 +354,17 @@ libgfortran() {
mv "$pkgdir"/usr/lib/libgfortran.so.* "$subpkgdir"/usr/lib/
}
+libquadmath() {
+ replaces="gcc"
+ pkgdesc="128-bit math library for GCC"
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/libquadmath.so.* "$subpkgdir"/usr/lib/
+}
+
gfortran() {
pkgdesc="GNU Fortran Compiler"
+ depends="$depends libgfortran libquadmath"
+ replaces="gcc"
local libexec=usr/libexec/gcc/${CHOST:-$_chost}/$pkgver
local gcclibs=usr/lib/gcc/${CHOST:-$_chost}/$pkgver
mkdir -p "$subpkgdir"/$libexec \
@@ -365,6 +374,8 @@ gfortran() {
mv "$pkgdir"/usr/bin/*gfortran "$subpkgdir"/usr/bin/ || return 1
mv "$pkgdir"/usr/lib/libgfortran.a \
"$pkgdir"/usr/lib/libgfortran.so \
+ "$pkgdir"/usr/lib/libquadmath.a \
+ "$pkgdir"/usr/lib/libquadmath.so \
"$subpkgdir"/usr/lib/ || return 1
mv "$pkgdir"/$libexec/f951 \
"$subpkgdir"/$libexec