commit: 45c294854c297e26dff27e88c8d6e0a2405196a8
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 11 22:56:55 2020 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Thu Jun 11 23:25:15 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45c29485
sci-libs/openblas: earn respect for CFLAGS/FFLAGS.
The upstream Makefile.system adds "-O2" to your C/FORTRAN flags if you
don't tell it not to. Now we tell it not to, so that you can build at
lower optimization levels like -O0.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
sci-libs/openblas/openblas-0.3.9-r1.ebuild | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sci-libs/openblas/openblas-0.3.9-r1.ebuild
b/sci-libs/openblas/openblas-0.3.9-r1.ebuild
index c47011a3fa6..cb255367b63 100644
--- a/sci-libs/openblas/openblas-0.3.9-r1.ebuild
+++ b/sci-libs/openblas/openblas-0.3.9-r1.ebuild
@@ -44,6 +44,10 @@ pkg_setup() {
# disable submake with -j
export MAKE_NB_JOBS=-1
+ # Set these to "nothing" to prevent the default optimization flags
+ # from being added in Makefile.system.
+ export COMMON_OPT=" " FCOMMON_OPT=" "
+
USE_THREAD=0
if use openmp; then
USE_THREAD=1; USE_OPENMP=1;