diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-05-26 13:54:03 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2024-08-07 09:57:56 -0500 |
commit | 224c96af0cfe8b346dcb3ed41e1a7196c33841a1 (patch) | |
tree | 7b6aca56e7978e21b7936911e58dada91cdcc982 /user/glm/APKBUILD | |
parent | ec9ca4ea01b96b75f287057ca85dc0a0ca1e45ee (diff) | |
download | packages-224c96af0cfe8b346dcb3ed41e1a7196c33841a1.tar.gz packages-224c96af0cfe8b346dcb3ed41e1a7196c33841a1.tar.bz2 packages-224c96af0cfe8b346dcb3ed41e1a7196c33841a1.tar.xz packages-224c96af0cfe8b346dcb3ed41e1a7196c33841a1.zip |
user/glm: Workaround for GCC 13
There is a compiler bug on PowerPC 64 that is being investigated.
Ref: #1170
Diffstat (limited to 'user/glm/APKBUILD')
-rw-r--r-- | user/glm/APKBUILD | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/user/glm/APKBUILD b/user/glm/APKBUILD index 54c1d2be6..17f12e864 100644 --- a/user/glm/APKBUILD +++ b/user/glm/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Max Rees <maxcrees@me.com> pkgname=glm pkgver=0.9.9.5 -pkgrel=0 +pkgrel=1 pkgdesc="C++ header-only mathematics library for graphics programming" url="https://glm.g-truc.net/" arch="noarch" @@ -14,25 +14,25 @@ builddir="$srcdir/$pkgname" replaces="glm-dev" build() { - mkdir build - cd build + mkdir -p build - cmake .. \ + # See #1170, and upstream#1087 + export CXXFLAGS="$CXXFLAGS -fno-ipa-modref -fno-stack-protector" + cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_LIBDIR=lib \ - -DGLM_TEST_ENABLE=bool:ON - make + -DGLM_TEST_ENABLE=bool:ON \ + -Bbuild + make -C build } check() { - cd build - make test + make -C build test } package() { - cd build - make install DESTDIR="$pkgdir" + make -C build install DESTDIR="$pkgdir" } sha512sums="ea4f03d31596e27bd8c3d8d0a82a3ae0050ec0df5a747f3d92e467eacab579bb8b191499cb63bf8574da7a1085b9fe6dd7cd0ce93b758d8d7978b2389cc58b94 glm-0.9.9.5.zip |