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:
parent
21c8315ca0
commit
3cdbbb0ada
|
@ -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() {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue