This also fixes bug 566518 ([TRACKER] use* functions called in global
scope). Works cleanly with LTO/gold enabled.
Package-Manager: portage-2.2.28
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
# needs someone to test on these: ~alpha ~hppa ~ia64 ~sparc etc ...
-IUSE="debug doc examples lto"
+IUSE="debug doc examples"
RDEPEND="
virtual/fortran
S=${WORKDIR}/${MY_P}
-if use lto; then
- RESTRICT="strip"
-fi
-
pkg_setup() {
fortran-2_pkg_setup
case "$(tc-getFC)" in
TC_FLAGS="CC=$CC FC=$FC AR=$AR RANLIB=$RANLIB"
ARFLAGS="rv"
- if use lto; then
- PLUGIN_PATH="--plugin=$(gcc -print-prog-name=liblto_plugin.so)"
- tc-ld-is-gold && ARFLAGS="rv ${PLUGIN_PATH}"
- fi
-
# emake won't work with this fossil...
BUFRFLAGS="ARCH=$target R64=$R64 CNAME=$CNAME"
make $TC_FLAGS ARFLAGS="${ARFLAGS}" $BUFRFLAGS || die "make failed"
and comes with a few example tools (some of which are built
and installed).
</longdescription>
- <use>
- <flag name="lto">
- Use gold linker and -flto (requires existing env setup)
- </flag>
- </use>
</pkgmetadata>