aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'cargo-ebuild-template.tera')
-rw-r--r--cargo-ebuild-template.tera3
1 files changed, 3 insertions, 0 deletions
diff --git a/cargo-ebuild-template.tera b/cargo-ebuild-template.tera
index 029f38c..be605d1 100644
--- a/cargo-ebuild-template.tera
+++ b/cargo-ebuild-template.tera
@@ -6,6 +6,8 @@
# Auto-Generated by cargo-ebuild {{ cargo_ebuild_ver }}
{% endblock %}
+inherit {% block inherit -%}cargo flag-o-matic{%- endblock %}
+
{% set homepage = 'https://github.com/gentoo/cargo-ebuild' %}
HOMEPAGE={%- block homepage -%}"{{ homepage }}"{%- endblock %}
SRC_URI={%- block src_uri -%}{% raw -%}"https://gitweb.gentoo.org/proj/${PN}.git/snapshot/${P}.tar.bz2
@@ -28,6 +30,7 @@ QA_FLAGS_IGNORED="usr/bin/cargo-ebuild"
{% block phases %}
src_configure() {
+ filter-flags '-flto*' # https://bugs.gentoo.org/858332
export LIBGIT2_SYS_USE_PKG_CONFIG=1 LIBSSH2_SYS_USE_PKG_CONFIG=1 PKG_CONFIG_ALLOW_CROSS=1
cargo_src_configure
}