From 3960db8cbbf8b09ebae641841efeb15498384de6 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 13 Sep 2018 16:30:56 +0200 Subject: core/glibc: adpot i486 changes --- core/glibc/PKGBUILD | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'core/glibc') 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 -- cgit v1.2.3-70-g09d2