From: Andreas Sturmlechner Date: Thu, 5 Apr 2018 15:08:00 +0000 (+0200) Subject: app-office/libreoffice: Fix build with -flto* X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=448467a41fcaf8c70413e45cba5b91b988c26154;p=gentoo.git app-office/libreoffice: Fix build with -flto* Closes: https://bugs.gentoo.org/650208 Package-Manager: Portage-2.3.28, Repoman-2.3.9 --- diff --git a/app-office/libreoffice/libreoffice-6.0.9999.ebuild b/app-office/libreoffice/libreoffice-6.0.9999.ebuild index dcbfe6a9d252..7b989b3abd12 100644 --- a/app-office/libreoffice/libreoffice-6.0.9999.ebuild +++ b/app-office/libreoffice/libreoffice-6.0.9999.ebuild @@ -483,6 +483,8 @@ src_configure() { myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) ) fi + is-flagq "-flto*" && myeconfargs+=( --enable-lto ) + econf "${myeconfargs[@]}" } diff --git a/app-office/libreoffice/libreoffice-9999.ebuild b/app-office/libreoffice/libreoffice-9999.ebuild index 23aa3d2795c4..271f47c5cc6c 100644 --- a/app-office/libreoffice/libreoffice-9999.ebuild +++ b/app-office/libreoffice/libreoffice-9999.ebuild @@ -482,6 +482,8 @@ src_configure() { myeconfargs+=( --with-rhino-jar=$(java-pkg_getjar rhino-1.6 js.jar) ) fi + is-flagq "-flto*" && myeconfargs+=( --enable-lto ) + econf "${myeconfargs[@]}" }