net-misc/bird: LTO handling

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
Alarig Le Lay 2021-09-23 14:22:55 +02:00
parent 21c8315ca0
commit 3cdbbb0ada
Signed by: alarig
GPG Key ID: 7AFE62C6DF8BCDEC
2 changed files with 10 additions and 3 deletions

View File

@ -12,7 +12,7 @@ LICENSE="GPL-2"
SLOT="0" SLOT="0"
KEYWORDS="amd64 ~arm64 ~x86 ~x64-macos" KEYWORDS="amd64 ~arm64 ~x86 ~x64-macos"
IUSE="+client debug libssh" IUSE="+client debug libssh lto"
RDEPEND=" RDEPEND="
client? ( sys-libs/ncurses:= ) client? ( sys-libs/ncurses:= )
@ -21,7 +21,8 @@ RDEPEND="
acct-group/bird acct-group/bird
acct-user/bird acct-user/bird
) )
libssh? ( net-libs/libssh:= )" libssh? ( net-libs/libssh:= )
"
BDEPEND=" BDEPEND="
sys-devel/bison sys-devel/bison
sys-devel/flex sys-devel/flex
@ -39,7 +40,12 @@ src_configure() {
--localstatedir="${EPREFIX}/var" \ --localstatedir="${EPREFIX}/var" \
$(use_enable client) \ $(use_enable client) \
$(use_enable debug) \ $(use_enable debug) \
$(use_enable libssh) $(use_enable libssh) \
$(use !lto && echo bird_cv_c_lto=no)
}
src_compile() {
emake VERBOSE=1
} }
src_install() { src_install() {

View File

@ -19,5 +19,6 @@
Enables <pkg>net-libs/libssh</pkg> binding, mendatory for RPKI Enables <pkg>net-libs/libssh</pkg> binding, mendatory for RPKI
support support
</flag> </flag>
<flag name="lto">Build with Link Time Optimization (LTO)</flag>
</use> </use>
</pkgmetadata> </pkgmetadata>