Skip to content

Commit

Permalink
profiles/use.desc: Make USE=lto global
Browse files Browse the repository at this point in the history
Add a global USE=lto flag.  The flag is used semi-consistently in 31
packages, with a few adding extra information.  That said, probably
many of these uses are invalid, as they are equivalent to adding
`-flto` to CFLAGS.

Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Dec 18, 2023
1 parent 3ec937d commit ad0f2f0
Show file tree
Hide file tree
Showing 26 changed files with 1 addition and 35 deletions.
1 change: 0 additions & 1 deletion app-admin/clsync/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
<flag name="extra-hardened">Enable extra security checks. This will hurt performance.</flag>
<flag name="gio">Enable GIO for FS monitoring (glib based alternative to inotify interface, not recommended; if both are compiled, may be selected at runtime).</flag>
<flag name="highload-locks">Allows to use spinlocks for short delays instead of mutexes, but only on SMP systems.</flag>
<flag name="lto">Build with link time optimization (LTO).</flag>
<flag name="namespaces">Enable namespaces isolation.</flag>
<flag name="socket-library">Build the control and monitoring socket library: libclsync.</flag>
</use>
Expand Down
1 change: 0 additions & 1 deletion app-admin/sysstat/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@
</upstream>
<use>
<flag name="dcron">Adjust cronjobs to work properly under <pkg>sys-process/dcron</pkg></flag>
<flag name="lto">Build using Link Time Optimizations (LTO)</flag>
</use>
</pkgmetadata>
1 change: 0 additions & 1 deletion app-containers/lxc/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
</maintainer>
<use>
<flag name="io-uring">Enable io_uring support, and use io_uring instead of epoll</flag>
<flag name="lto">Enable Link Time Optimization (LTO)</flag>
<flag name="tools">Build and install additional command line tools</flag>
</use>
<upstream>
Expand Down
1 change: 0 additions & 1 deletion app-editors/neovim/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<name>Proxy Maintainers</name>
</maintainer>
<use>
<flag name="lto">Build with Link Time Optimization (LTO)</flag>
<flag name="nvimpager">Install nvimpager symlink to less.sh macro</flag>
</use>
<upstream>
Expand Down
3 changes: 0 additions & 3 deletions app-mobilephone/scrcpy/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
<email>[email protected]</email>
<name>Bernard Cafarelli</name>
</maintainer>
<use>
<flag name="lto">Build with Link Time Optimization (LTO)</flag>
</use>
<upstream>
<remote-id type="github">Genymobile/scrcpy</remote-id>
</upstream>
Expand Down
1 change: 0 additions & 1 deletion app-text/crengine-ng/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<flag name="libunibreak">Use <pkg>dev-libs/libunibreak</pkg> for hyphenation</flag>
<flag name="fribidi">Support bidirectional text by <pkg>dev-libs/fribidi</pkg></flag>
<flag name="libutf8proc">Use <pkg>dev-libs/libutf8proc</pkg> for manipulating unicode strings</flag>
<flag name="lto">Use link time optimization</flag>
</use>
<upstream>
<remote-id type="gitlab">coolreader-ng/crengine-ng</remote-id>
Expand Down
3 changes: 0 additions & 3 deletions dev-cpp/benchmark/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@
<doc lang="en">https://github.com/google/benchmark/tree/master/docs/</doc>
<remote-id type="github">google/benchmark</remote-id>
</upstream>
<use>
<flag name="lto">Optimize the build using Link Time Optimization (LTO)</flag>
</use>
</pkgmetadata>
1 change: 0 additions & 1 deletion dev-db/mongodb/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
and powerful queries).
</longdescription>
<use>
<flag name="lto">Adds support for link time optimization</flag>
<flag name="mongosh">Install the MongoDB shell from <pkg>app-admin/mongosh-bin</pkg></flag>
<flag name="tools">Install the MongoDB tools (mongoimport, mongodump...) from <pkg>app-admin/mongo-tools</pkg></flag>
</use>
Expand Down
1 change: 0 additions & 1 deletion dev-java/openjdk/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<flag name="javafx" restrict="&lt;=dev-java/openjdk-9">Provide JavaFX support via <pkg>dev-java/openjfx</pkg></flag>
<flag name="javafx" restrict="&gt;=dev-java/openjdk-11">Import OpenJFX modules at build time, via <pkg>dev-java/openjfx</pkg></flag>
<flag name="jbootstrap">Build OpenJDK twice, the second time using the result of the first</flag>
<flag name="lto">Enable Link Time Optimization (LTO)</flag>
<flag name="source">Install JVM sources</flag>
<flag name="system-bootstrap">Bootstrap using installed openjdk</flag>
<flag name="systemtap" restrict="&gt;=dev-java/openjdk-11">Enable SystemTAP/DTrace tracing</flag>
Expand Down
3 changes: 0 additions & 3 deletions dev-lang/R/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
<email>[email protected]</email>
<name>Gentoo Mathematics Project</name>
</maintainer>
<use>
<flag name="lto">Use link-time optimization for R and its recommended packages.</flag>
</use>
<longdescription lang="en">
R is GNU S, a system for statistical computation and graphics. It
consists of a language plus a run-time environment with graphics, a
Expand Down
1 change: 0 additions & 1 deletion dev-lang/gnat-gpl/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
<flag name="libssp">Build SSP support into a dedicated library rather
than use the code in the C library (DO NOT ENABLE THIS IF YOU DON'T
KNOW WHAT IT DOES)</flag>
<flag name="lto">Build using Link Time Optimizations (LTO)</flag>
<flag name="nptl">Enable support for Native POSIX Threads Library, the new threading module (requires linux-2.6 or better usually)</flag>
<flag name="objc">Build support for the Objective C code language
</flag>
Expand Down
3 changes: 0 additions & 3 deletions dev-lang/python/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
by running Python's test suite and collecting statistics
based on its performance. This will take longer to build.
</flag>
<flag name="lto">
Optimize the build using Link Time Optimization (LTO)
</flag>
<flag name="valgrind">
Disable pymalloc when running under
<pkg>dev-util/valgrind</pkg> is detected (may incur minor
Expand Down
1 change: 0 additions & 1 deletion dev-lang/rust/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<use>
<flag name="clippy">Install clippy, Rust code linter</flag>
<flag name="dist">Install dist tarballs (used for bootstrapping)</flag>
<flag name="lto">Optimize the build using Link Time Optimization (LTO)</flag>
<flag name="miri">Install miri, an interpreter for Rust's mid-level intermediate representation (requires USE=nightly, sometimes is broken)</flag>
<flag name="nightly">Enable nightly (UNSTABLE) features (NOTE: it does not install nightly version, just enables features marked as nightly at time of release)</flag>
<flag name="parallel-compiler">Build a multi-threaded rustc (experimental, not tested by upstream)</flag>
Expand Down
1 change: 0 additions & 1 deletion dev-lang/spidermonkey/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@
<use>
<flag name="clang">Use Clang compiler instead of GCC</flag>
<flag name="debug">Enable assertions to allow for easier debugging of programs that link to spidermonkey -- note this will often crash software on regular end-user systems</flag>
<flag name="lto">Enable Link Time Optimization (LTO)</flag>
</use>
</pkgmetadata>
1 change: 0 additions & 1 deletion dev-libs/pocl/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
<!--<flag name="hsa">Enable the HSA base profile runtime device driver</flag>-->
<flag name="hwloc">Enable hwloc support</flag>
<flag name="memmanager">Enables custom memory manager. Except for special circumstances, this should be disabled</flag>
<flag name="lto">Adds support for link time optimization</flag>
</use>
<upstream>
<remote-id type="github">pocl/pocl</remote-id>
Expand Down
1 change: 0 additions & 1 deletion games-action/prismlauncher/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
</upstream>
<longdescription>Prism Launcher is a multi-instance Minecraft launcher focused on user freedom, redistributability, and simplicity.</longdescription>
<use>
<flag name="lto">Enable link-time optimization</flag>
<flag name="qt6">Build with Qt6 support instead of the default Qt5</flag>
</use>
</pkgmetadata>
1 change: 0 additions & 1 deletion mail-client/thunderbird/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<flag name="eme-free">Disable EME (DRM plugin) capability at build time</flag>
<flag name="hwaccel">Force-enable hardware-accelerated rendering (Mozilla bug 594876)</flag>
<flag name="libproxy">Enable libproxy support</flag>
<flag name="lto">Enable Link Time Optimization (LTO)</flag>
<flag name="openh264">Use <pkg>media-libs/openh264</pkg> for H.264 support
instead of downloading binary blob from Mozilla at runtime</flag>
<flag name="pgo">Add support for profile-guided optimization using gcc-4.5,
Expand Down
1 change: 0 additions & 1 deletion media-sound/ncmpcpp/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
</maintainer>
<use>
<flag name="clock">Enable clock screen</flag>
<flag name="lto">Build with link-time optimisation</flag>
<flag name="outputs">Enable outputs screen</flag>
<flag name="visualizer">Enable visualizer screen with sound wave/frequency spectrum modes</flag>
</use>
Expand Down
1 change: 0 additions & 1 deletion net-analyzer/icinga2/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
</maintainer>
<use>
<flag name="console">Adds support for line-editing in the console</flag>
<flag name="lto">Adds support for link time optimization</flag>
<flag name="jumbo-build">Combine source files to speed up build process, requires more memory</flag>
<flag name="mail">Allows for mailing of alerts</flag>
<flag name="mariadb">Enable support for the mariadb database backend</flag>
Expand Down
1 change: 0 additions & 1 deletion net-analyzer/netdata/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
<flag name="dbengine">Enable the Netdata database engine</flag>
<flag name="ipmi">Install <pkg>sys-apps/ipmitool</pkg> required for monitoring IPMI sensors.</flag>
<flag name="jsonc">Enable optimization of JSON using <pkg>dev-libs/json-c</pkg></flag>
<flag name="lto">Build with Link Time Optimization (LTO)</flag>
<flag name="mongodb">Enable support for the mongodb backend</flag>
<flag name="nfacct">Enable the nfacct plugin</flag>
<flag name="nodejs">Enable use of nodejs (which some plugins use)</flag>
Expand Down
1 change: 0 additions & 1 deletion net-analyzer/wireshark/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
<flag name="http2">Use <pkg>net-libs/nghttp2</pkg> for HTTP/2 support</flag>
<flag name="ilbc">Build with iLBC support in RTP Player using <pkg>media-libs/libilbc</pkg></flag>
<flag name="libxml2">Use <pkg>dev-libs/libxml2</pkg> for handling XML configuration in dissectors</flag>
<flag name="lto">Enable link time optimization</flag>
<flag name="maxminddb">Use <pkg>dev-libs/libmaxminddb</pkg> for IP address geolocation</flag>
<flag name="mergecap">Install mergecap, to merge two or more capture files into one</flag>
<flag name="minizip">Build with zip file compression support</flag>
Expand Down
3 changes: 0 additions & 3 deletions net-irc/ircii/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@
<email>[email protected]</email>
<name>Ben Kohler</name>
</maintainer>
<use>
<flag name="lto">Build using Link Time Optimizations (LTO)</flag>
</use>
</pkgmetadata>
1 change: 0 additions & 1 deletion net-libs/nodejs/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<use>
<flag name="corepack">Enable the experimental corepack package management tool</flag>
<flag name="inspector">Enable V8 inspector</flag>
<flag name="lto">Build with link-time optimisation</flag>
<flag name="npm">Enable NPM package manager</flag>
<flag name="pax-kernel">Enable building under a PaX enabled kernel</flag>
<flag name="snapshot">Enable snapshot creation for faster startup</flag>
Expand Down
1 change: 0 additions & 1 deletion net-misc/networkmanager/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<flag name="iptables">Use <pkg>net-firewall/iptables</pkg> for connection sharing</flag>
<flag name="iwd">Use <pkg>net-wireless/iwd</pkg> instead of <pkg>net-wireless/wpa_supplicant</pkg> for wifi support by default</flag>
<flag name="psl">Use public suffix list via <pkg>net-libs/libpsl</pkg></flag>
<flag name="lto">Build using Link Time Optimizations (LTO)</flag>
<flag name="modemmanager">Enable support for mobile broadband devices using <pkg>net-misc/modemmanager</pkg></flag>
<flag name="nftables">Use <pkg>net-firewall/nftables</pkg> for connection sharing</flag>
<flag name="nss">Use <pkg>dev-libs/nss</pkg> for cryptography</flag>
Expand Down
1 change: 1 addition & 0 deletions profiles/use.desc
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ lirc - Add support for lirc (Linux's Infra-Red Remote Control)
livecd - !!internal use only!! DO NOT SET THIS FLAG YOURSELF!, used during livecd building
llvm-libunwind - Use sys-libs/llvm-libunwind instead of sys-libs/libunwind
lm-sensors - Add linux lm-sensors (hardware sensors) support
lto - Enable Link-Time Optimization (LTO) to optimize the build
lua - Enable Lua scripting support
lz4 - Enable support for lz4 compression (as implemented in app-arch/lz4)
lzip - Enable support for lzip compression
Expand Down
1 change: 0 additions & 1 deletion www-client/firefox/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<flag name="hwaccel">Force-enable hardware-accelerated rendering (Mozilla bug 594876)</flag>
<flag name="jumbo-build">Enable unified build - combines source files to speed up build process, but requires more memory</flag>
<flag name="libproxy">Enable libproxy support</flag>
<flag name="lto">Enable Link Time Optimization (LTO)</flag>
<flag name="openh264">Use <pkg>media-libs/openh264</pkg> for H264 support
instead of downloading binary blob from Mozilla at runtime</flag>
<flag name="pgo">Add support for profile-guided optimization for faster binaries - this
Expand Down

0 comments on commit ad0f2f0

Please sign in to comment.