index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-09-13 15:42:35 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-09-13 15:42:35 +0200 |
commit | 13160576b99ff949630f0e0ed7493725a6a9156f (patch) | |
tree | c5c8a30670330c70e87696f6f8a63d81b95b19b0 /core/gcc | |
parent | cf4fcd0b6d35841ee2fb0b335cbc276f0f003a56 (diff) |
-rw-r--r-- | core/gcc/PKGBUILD | 70 |
diff --git a/core/gcc/PKGBUILD b/core/gcc/PKGBUILD index 86d70aae..fecb7d16 100644 --- a/core/gcc/PKGBUILD +++ b/core/gcc/PKGBUILD @@ -14,6 +14,7 @@ eval "$( declare -f build | \ sed ' s/--enable-multilib/--disable-multilib/ + s,--with-bugurl=https://bugs\.archlinux\.org/,--with-bugurl=https://bugs.archlinux32.org/, ' declare -f package_gcc-libs | \ sed ' @@ -46,3 +47,72 @@ eval "$( ' done )" + +# i486-specific + +# disable doxygen documentation +makedepends=(${makedepends[@]//doxygen/}) +makedepends_i686+=('doxygen') + +if [ "${CARCH}" = "i486" ]; then + eval "$( + declare -f build | \ + sed ' + /make.*doc-man-doxygen/d + ' + )" + + eval "$( + declare -f package_gcc | \ + sed ' + /make.*doc-man-doxygen/d + /make.*doc-install-man/d + ' + )" +fi + +# no ADA +makedepends=(${makedepends[@]//gcc-ada/}) +makedepends_i686+=('gcc-ada') + +if [ "${CARCH}" = "i486" ]; then + package_gcc-ada() { + touch "$pkgdir/this-is-a-dummy-package" + } + + eval "$( + declare -f build | \ + sed ' + /enable-languages/ s/ada// + ' + )" + + eval "$( + declare -f package_gcc | \ + sed ' + s/,gnat-style,gnat_rm,gnat_ugn// + ' + )" + + # building toolchain (gcc): again, lobtool problems + # /usr/lib/gcc/i486-pc-linux-gnu/7.3.0/ld: cannot find -lquadmath + # collect2: error: ld returned 1 exit status + # libtool: install: error: relink `libgfortran.la' with the above command before installing it + # make: Leaving directory '/build/gcc/src/gcc-build/i486-pc-linux-gnu/libgfortran' + # => wrong link order: libgfortran requires libquadmath + eval "$( + declare -f package_gcc-libs | \ + sed ' + s/libgfortran/libquadmath libgfortran/ + ' + )" + + # disable CET (Control Flow instructions endbr32/enbr64) + eval "$( + declare -f build | \ + sed ' + s/--enable-cet=auto/--disable-cet/ + ' + )" + +fi |