toolchain.eclass: Migrate CROSSCOMPILE_OPTS=headers-only -> USE=headers-only
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 7 Jan 2018 18:50:51 +0000 (18:50 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Sun, 7 Jan 2018 19:39:46 +0000 (19:39 +0000)
CROSSCOMPILE_OPTS is a USE_EXPAND of a single item: headers-only.
Convert it to a global USE flag instead.

Mechanical ebuild rename done as:
    $ sed -e 's@crosscompile_opts_headers-only@headers-only@g' \
        -i $(git grep -l headers-only)

'headers-only' flag is used by crossdev to bootstrap stage1 compiler
before libc is available.

crossdev switched to USE=headers-only in =sys-devel/crossdev-20171230.

Bug: https://bugs.gentoo.org/642712
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain.eclass

index 7fc4c70652f3f7b640ca7a33d8f4d8108f91915a..c1fe72d935426d61381a0c655153bc3f364f17c4 100644 (file)
@@ -993,7 +993,7 @@ toolchain_src_configure() {
                                        --disable-threads
                                        --without-headers
                                )
-                       elif has_version "${CATEGORY}/${needed_libc}[crosscompile_opts_headers-only(-)]" ; then
+                       elif has_version "${CATEGORY}/${needed_libc}[headers-only(-)]" ; then
                                confgcc+=(
                                        "${confgcc_no_libc[@]}"
                                        --with-sysroot="${PREFIX}"/${CTARGET}