aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-08-28 02:59:19 +0000
committeralice <alice@ayaya.dev>2022-08-28 03:21:49 +0000
commitcf52d8b80694ff6a82250ccefa5052e95c909c62 (patch)
treea35140ae22a5fe5fa84fe4d678f83f8a89e66dda
parent087f3f5335b81230f6c1de42113a7e8a71a73ec7 (diff)
downloadaports-cf52d8b80694ff6a82250ccefa5052e95c909c62.tar.gz
aports-cf52d8b80694ff6a82250ccefa5052e95c909c62.tar.bz2
aports-cf52d8b80694ff6a82250ccefa5052e95c909c62.tar.xz
community/vulkan-loader: add lto
-rw-r--r--community/vulkan-loader/APKBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/community/vulkan-loader/APKBUILD b/community/vulkan-loader/APKBUILD
index 764420a4a4..61b0b19f09 100644
--- a/community/vulkan-loader/APKBUILD
+++ b/community/vulkan-loader/APKBUILD
@@ -4,7 +4,7 @@
pkgname=vulkan-loader
_pkgname=Vulkan-Loader
pkgver=1.3.224.1
-pkgrel=0
+pkgrel=1
arch="all"
url="https://www.khronos.org/vulkan"
pkgdesc="Vulkan Installable Client Driver (ICD) Loader"
@@ -24,8 +24,9 @@ builddir="$srcdir/$_pkgname-sdk-$pkgver"
options="!check" # No tests
build() {
+ CXXFLAGS="$CXXFLAGS -flto=auto" \
cmake -B build -G Ninja \
- -DCMAKE_BUILD_TYPE=MinSizeRel \
+ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \