commit:     c9a1216cb805d26b177f98b927537859ec82997f
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 14 15:09:47 2023 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Wed Jun 14 15:13:53 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9a1216c

dev-libs/ntl: set NATIVE=off again.

Pong. NTL detects CPU features at build time, and needs something like
CXXFLAGS="-march=native" to do it properly. But, so long as we don't try
to enable anything based on the user's CPU_FLAGS_X86, it should be safe
to leave NATIVE=off to avoid overriding his CXXFLAGS.

Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 dev-libs/ntl/ntl-11.5.1-r4.ebuild | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/dev-libs/ntl/ntl-11.5.1-r4.ebuild 
b/dev-libs/ntl/ntl-11.5.1-r4.ebuild
index c8e07339e445..a15d8549c839 100644
--- a/dev-libs/ntl/ntl-11.5.1-r4.ebuild
+++ b/dev-libs/ntl/ntl-11.5.1-r4.ebuild
@@ -47,12 +47,6 @@ src_configure() {
        # may lead to worse performance." So we are probably not missing out
        # on much.
        #
-       # The NATIVE=on option adds "-march=native" to CXXFLAGS and should
-       # not be enabled on Gentoo, but is currently necessary for NTL's CPU
-       # feature detection to work (bug 815775). See the upstream issue,
-       #
-       #  https://github.com/libntl/ntl/issues/22
-       #
        perl DoConfig \
                PREFIX="${EPREFIX}"/usr \
                LIBDIR="${EPREFIX}"/usr/$(get_libdir) \
@@ -67,7 +61,7 @@ src_configure() {
                NTL_GF2X_LIB=on \
                NTL_THREADS=$(usex threads on off) \
                NTL_ENABLE_AVX_FFT=off \
-               NATIVE=on \
+               NATIVE=off \
                || die "DoConfig failed"
 
        if use doc; then

Reply via email to