mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/gmp: tie --enable-fat to USE=cpudetection
Note that USE=-cpudetection still gives a very generic build rather than one detected at build time to be precisely the machine compiled on (for now?) Bug: https://bugs.gentoo.org/883201 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -27,7 +27,8 @@ LICENSE="|| ( LGPL-3+ GPL-2+ )"
|
|||||||
SLOT="0/10.4"
|
SLOT="0/10.4"
|
||||||
# Unkeyworded temporarily for some more testing
|
# Unkeyworded temporarily for some more testing
|
||||||
#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
IUSE="+asm doc +cxx pic static-libs"
|
IUSE="+asm doc +cpudetection +cxx pic static-libs"
|
||||||
|
REQUIRED_USE="cpudetection? ( asm )"
|
||||||
|
|
||||||
BDEPEND="
|
BDEPEND="
|
||||||
app-arch/xz-utils
|
app-arch/xz-utils
|
||||||
@@ -93,14 +94,14 @@ multilib_src_configure() {
|
|||||||
--localstatedir="${EPREFIX}"/var/state/gmp
|
--localstatedir="${EPREFIX}"/var/state/gmp
|
||||||
--enable-shared
|
--enable-shared
|
||||||
|
|
||||||
|
$(use_enable asm assembly)
|
||||||
# fat is needed to avoid gmp installing either purely generic
|
# fat is needed to avoid gmp installing either purely generic
|
||||||
# or specific-to-used-CPU (which our config.guess refresh prevents at the moment).
|
# or specific-to-used-CPU (which our config.guess refresh prevents at the moment).
|
||||||
# Both Fedora and opensuse use this option to tackle the issue, bug #883201.
|
# Both Fedora and opensuse use this option to tackle the issue, bug #883201.
|
||||||
#
|
#
|
||||||
# This only works for x86, so we're still getting non-performant
|
# This only works for x86, so we're still getting non-performant
|
||||||
# builds on other arches until we figure something out!
|
# builds on other arches until we figure something out!
|
||||||
$(use_enable asm fat)
|
$(use_enable cpudetection fat)
|
||||||
$(use_enable asm assembly)
|
|
||||||
$(use_enable cxx)
|
$(use_enable cxx)
|
||||||
$(use_enable static-libs static)
|
$(use_enable static-libs static)
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,16 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type="project">
|
<maintainer type="project">
|
||||||
<email>toolchain@gentoo.org</email>
|
<email>toolchain@gentoo.org</email>
|
||||||
<name>Gentoo Toolchain Project</name>
|
<name>Gentoo Toolchain Project</name>
|
||||||
</maintainer>
|
</maintainer>
|
||||||
<use>
|
<use>
|
||||||
<flag name="asm">Enable use of hand optimized assembly routines (faster execution)</flag>
|
<flag name="asm">Enable use of hand optimized assembly routines (faster execution)</flag>
|
||||||
<flag name="pic">Force static libraries to be built as PIC to avoid TEXTRELs.</flag>
|
<flag name="cpudetection">Enables runtime CPU detection (useful for binpkgs, compatibility on other CPUs)</flag>
|
||||||
</use>
|
<flag name="pic">Force static libraries to be built as PIC to avoid TEXTRELs.</flag>
|
||||||
<upstream>
|
</use>
|
||||||
<remote-id type="cpe">cpe:/a:gmplib:gmp</remote-id>
|
<upstream>
|
||||||
</upstream>
|
<remote-id type="cpe">cpe:/a:gmplib:gmp</remote-id>
|
||||||
|
</upstream>
|
||||||
</pkgmetadata>
|
</pkgmetadata>
|
||||||
|
|||||||
@@ -17,6 +17,10 @@
|
|||||||
|
|
||||||
#--- END OF EXAMPLES ---
|
#--- END OF EXAMPLES ---
|
||||||
|
|
||||||
|
# Sam James <sam@gentoo.org> (2022-11-30)
|
||||||
|
# Only effective on amd64/x86.
|
||||||
|
dev-libs/gmp -cpudetection
|
||||||
|
|
||||||
# Guillermo Joandet <gjoandet@gmail.com> (2022-11-22)
|
# Guillermo Joandet <gjoandet@gmail.com> (2022-11-22)
|
||||||
# app-text/pandoc is keyworded on this architecture
|
# app-text/pandoc is keyworded on this architecture
|
||||||
net-libs/gssdp -man
|
net-libs/gssdp -man
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# Sam James <sam@gentoo.org> (2022-11-30)
|
||||||
|
# Only effective on amd64/x86.
|
||||||
|
dev-libs/gmp cpudetection
|
||||||
|
|
||||||
# Mike Gilbert <floppym@gentoo.org> (2022-10-16)
|
# Mike Gilbert <floppym@gentoo.org> (2022-10-16)
|
||||||
# Only supported on MIPS.
|
# Only supported on MIPS.
|
||||||
dev-lang/gnat-gpl fixed-point
|
dev-lang/gnat-gpl fixed-point
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# Sam James <sam@gentoo.org> (2022-11-30)
|
||||||
|
# Only effective on amd64/x86.
|
||||||
|
dev-libs/gmp -cpudetection
|
||||||
|
|
||||||
# Michał Górny <mgorny@gentoo.org> (2022-11-16)
|
# Michał Górny <mgorny@gentoo.org> (2022-11-16)
|
||||||
# spirv-llvm-translator is not keyworded x86.
|
# spirv-llvm-translator is not keyworded x86.
|
||||||
dev-libs/libclc spirv
|
dev-libs/libclc spirv
|
||||||
|
|||||||
Reference in New Issue
Block a user