diff options
author | 2022-11-30 08:30:15 +0000 | |
---|---|---|
committer | 2022-11-30 08:31:33 +0000 | |
commit | bf286a7973d8b95dbef90f17cc8e2d66c19a47c8 (patch) | |
tree | af725112695f4eefc3b1b92a120bcf21d5b9b062 /dev-libs | |
parent | dev-libs/gmp: link to upstream packaging notes (diff) | |
download | gentoo-bf286a7973d8b95dbef90f17cc8e2d66c19a47c8.tar.gz gentoo-bf286a7973d8b95dbef90f17cc8e2d66c19a47c8.tar.bz2 gentoo-bf286a7973d8b95dbef90f17cc8e2d66c19a47c8.zip |
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>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/gmp/gmp-6.2.1-r3.ebuild | 7 | ||||
-rw-r--r-- | dev-libs/gmp/metadata.xml | 23 |
2 files changed, 16 insertions, 14 deletions
diff --git a/dev-libs/gmp/gmp-6.2.1-r3.ebuild b/dev-libs/gmp/gmp-6.2.1-r3.ebuild index dc0cb7b4c773..8e7bca104d30 100644 --- a/dev-libs/gmp/gmp-6.2.1-r3.ebuild +++ b/dev-libs/gmp/gmp-6.2.1-r3.ebuild @@ -27,7 +27,8 @@ LICENSE="|| ( LGPL-3+ GPL-2+ )" SLOT="0/10.4" # 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" -IUSE="+asm doc +cxx pic static-libs" +IUSE="+asm doc +cpudetection +cxx pic static-libs" +REQUIRED_USE="cpudetection? ( asm )" BDEPEND=" app-arch/xz-utils @@ -93,14 +94,14 @@ multilib_src_configure() { --localstatedir="${EPREFIX}"/var/state/gmp --enable-shared + $(use_enable asm assembly) # fat is needed to avoid gmp installing either purely generic # 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. # # This only works for x86, so we're still getting non-performant # builds on other arches until we figure something out! - $(use_enable asm fat) - $(use_enable asm assembly) + $(use_enable cpudetection fat) $(use_enable cxx) $(use_enable static-libs static) diff --git a/dev-libs/gmp/metadata.xml b/dev-libs/gmp/metadata.xml index e98fbcba6811..753f212d3e39 100644 --- a/dev-libs/gmp/metadata.xml +++ b/dev-libs/gmp/metadata.xml @@ -1,15 +1,16 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<maintainer type="project"> - <email>toolchain@gentoo.org</email> - <name>Gentoo Toolchain Project</name> -</maintainer> -<use> - <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> -</use> -<upstream> - <remote-id type="cpe">cpe:/a:gmplib:gmp</remote-id> -</upstream> + <maintainer type="project"> + <email>toolchain@gentoo.org</email> + <name>Gentoo Toolchain Project</name> + </maintainer> + <use> + <flag name="asm">Enable use of hand optimized assembly routines (faster execution)</flag> + <flag name="cpudetection">Enables runtime CPU detection (useful for binpkgs, compatibility on other CPUs)</flag> + <flag name="pic">Force static libraries to be built as PIC to avoid TEXTRELs.</flag> + </use> + <upstream> + <remote-id type="cpe">cpe:/a:gmplib:gmp</remote-id> + </upstream> </pkgmetadata> |