sci-mathematics/gmp-ecm: add "emake clean" to force a rebuild.
authorMichael Orlitzky <mjo@gentoo.org>
Mon, 2 Mar 2020 14:03:40 +0000 (09:03 -0500)
committerMichael Orlitzky <mjo@gentoo.org>
Mon, 2 Mar 2020 17:20:46 +0000 (12:20 -0500)
Taking another shot at making USE=custom-tune do what it's supposed to
do. The project's targets don't depend on ecm-params.h, so after we
generate them, we need to "emake clean" and rebuild everything
manually in order to use the custom parameters.

Bug: https://bugs.gentoo.org/711078
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
sci-mathematics/gmp-ecm/gmp-ecm-7.0.4-r2.ebuild

index fa9bae778568b8c8c92aec65d226e5ea72a348d3..f93af7a063f1f0b42930e13b4ee695546e5c3b4f 100644 (file)
@@ -32,8 +32,9 @@ src_compile() {
                # One "emake" was needed to build the library. Now we can find
                # the best set of parameters, and then run "emake" one more time
                # to rebuild the library with the custom parameters. See the
-               # project's README or INSTALL-ecm
-               emake ecm-params && emake
+               # project's README or INSTALL-ecm. The build targets don't depend
+               # on ecm-params.h, so we need to "make clean" to force a rebuild.
+               emake ecm-params && emake clean && emake
        fi
 }
 src_configure() {