Skip to content
Snippets Groups Projects
Commit 8b3c875f authored by Jakub Jirutka's avatar Jakub Jirutka :flag_ua:
Browse files

main/unbound: build with LTO

unbound: 3016 KiB -> 2056 KiB
unbound-libs: 932 KiB -> 812 KiB

This aport doesn't provide static libraries, so we can safely
build with LTO.
parent d9da648d
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# Maintainer: Jakub Jirutka <jakub@jirutka.cz> # Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=unbound pkgname=unbound
pkgver=1.16.0 pkgver=1.16.0
pkgrel=0 pkgrel=1
pkgdesc="Unbound is a validating, recursive, and caching DNS resolver" pkgdesc="Unbound is a validating, recursive, and caching DNS resolver"
url="https://nlnetlabs.nl/projects/unbound/about/" url="https://nlnetlabs.nl/projects/unbound/about/"
arch="all" arch="all"
...@@ -56,6 +56,9 @@ source="https://unbound.net/downloads/unbound-$pkgver.tar.gz ...@@ -56,6 +56,9 @@ source="https://unbound.net/downloads/unbound-$pkgver.tar.gz
# - CVE-2019-16866 # - CVE-2019-16866
build() { build() {
export CFLAGS="$CFLAGS -flto"
export LDFLAGS="$LDFLAGS -flto"
PYTHON_VERSION=3 ./configure \ PYTHON_VERSION=3 ./configure \
--build="$CBUILD" \ --build="$CBUILD" \
--host="$CHOST" \ --host="$CHOST" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment