diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2020-06-11 18:56:55 -0400 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2020-06-11 19:25:15 -0400 |
commit | 45c294854c297e26dff27e88c8d6e0a2405196a8 (patch) | |
tree | 650bd52b0bf2b3524cdc73c8a232995294c6d740 /sci-libs/openblas | |
parent | sci-libs/openblas: don't clobber FFLAGS while building lapack. (diff) | |
download | gentoo-45c294854c297e26dff27e88c8d6e0a2405196a8.tar.gz gentoo-45c294854c297e26dff27e88c8d6e0a2405196a8.tar.bz2 gentoo-45c294854c297e26dff27e88c8d6e0a2405196a8.zip |
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@gentoo.org>
Diffstat (limited to 'sci-libs/openblas')
-rw-r--r-- | sci-libs/openblas/openblas-0.3.9-r1.ebuild | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sci-libs/openblas/openblas-0.3.9-r1.ebuild b/sci-libs/openblas/openblas-0.3.9-r1.ebuild index c47011a3fa64..cb255367b636 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; |