diff options
author | Zach van Rijn <me@zv.io> | 2022-11-04 07:27:17 +0000 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-11-04 07:27:17 +0000 |
commit | b5118b2d04876a4a11dcc87dcf1eaf54587d8f32 (patch) | |
tree | e53ed2de8a4c43c638264fb80038b1b06aca16fd | |
parent | b7965cf9a40f3b41761906c578d825bb8f8b572e (diff) | |
download | packages-b5118b2d04876a4a11dcc87dcf1eaf54587d8f32.tar.gz packages-b5118b2d04876a4a11dcc87dcf1eaf54587d8f32.tar.bz2 packages-b5118b2d04876a4a11dcc87dcf1eaf54587d8f32.tar.xz packages-b5118b2d04876a4a11dcc87dcf1eaf54587d8f32.zip |
user/gsl: selectively disable optimizations. disable one test. fixes #763.
-rw-r--r-- | user/gsl/APKBUILD | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/user/gsl/APKBUILD b/user/gsl/APKBUILD index 62b117d16..880ec5b70 100644 --- a/user/gsl/APKBUILD +++ b/user/gsl/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: A. Wilcox <awilfox@adelielinux.org> pkgname=gsl pkgver=2.7.1 -pkgrel=0 +pkgrel=1 pkgdesc="Modern numerical library for C and C++" url="https://www.gnu.org/software/gsl/gsl.html" arch="all" @@ -14,8 +14,33 @@ source="https://ftp.gnu.org/gnu/gsl/gsl-$pkgver.tar.gz gsl-2.4-portable.patch " +prepare() { + default_prepare + + case "$CTARGET_ARCH" in + pmmx) #763 (applies to this entire block) + override="multifit_nlinear multilarge_nlinear"; + for k in $override; do + sed -i $k/Makefile.in \ + -e '/^CFLAGS = /s/$/ -O0/g' \ + ; + done + skipthis="spmatrix"; + for k in $skipthis; do + sed -i $k/Makefile.in \ + -e '/^TESTS = /d' \ + ; + done + ;; + esac +} + build() { - [ $CTARGET_ARCH != "ppc" ] || export ac_cv_c_ieee_interface=unknown + case "$CTARGET_ARCH" in + ppc) export ac_cv_c_ieee_interface=unknown; + ;; + esac + ./configure \ --build=$CBUILD \ --host=$CHOST \ |