diff options
author | Erich Eckner <git@eckner.net> | 2018-09-13 16:30:56 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-09-13 16:30:56 +0200 |
commit | 3960db8cbbf8b09ebae641841efeb15498384de6 (patch) | |
tree | d15194c0cb029950b5972566b9e7840559809519 | |
parent | cbfdc074de0fa71dd501bd59a3fe4dd4cb27ec5b (diff) | |
download | packages-3960db8cbbf8b09ebae641841efeb15498384de6.tar.xz |
core/glibc: adpot i486 changes
-rw-r--r-- | core/glibc/PKGBUILD | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/core/glibc/PKGBUILD b/core/glibc/PKGBUILD index 30370bd8..8d191e6e 100644 --- a/core/glibc/PKGBUILD +++ b/core/glibc/PKGBUILD @@ -12,6 +12,7 @@ eval "$( s/.*/}/ q } + s@--enable-multi-arch@--disable-multi-arch@ ' declare -f package_glibc | \ sed ' @@ -21,3 +22,29 @@ eval "$( s,STRIP_STATIC ,\0usr/lib/libm.a , ' )" + +# 486-specific + +# no gd for memory profiles +makedepends=(${makedepends[@]//gd/}) +makedepends_i686=('gd'}) + +if [ "${CARCH}" = "i486" ]; then + + # disable testing for now, we run out of memory + eval "$( + declare -f check | \ + sed ' + /make check/d + ' + )" + + # disable CET (Control Flow instructions endbr32/enbr64) + eval "$( + declare -f build | \ + sed ' + s/--enable-cet/--disable-cet/ + ' + )" + +fi |