Accepting request 1190850 from home:eeich:branches:science
- Duplicate all options passed to `make` also to `make install`: The openblas build output suggests this: 'Note that any flags passed to make during build should also be passed to make install to circumvent any install errors'. This also makes sure that minimum CPU requirement is set in the pkgconfig file is the same one as used for building. This helps to maintain a reproducible build (boo#1228177). OBS-URL: https://build.opensuse.org/request/show/1190850 OBS-URL: https://build.opensuse.org/package/show/science/openblas?expand=0&rev=182
This commit is contained in:
parent
c24a92ea6e
commit
899e8c67a5
@ -1,9 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 29 09:21:41 UTC 2024 - Egbert Eich <eich@suse.com>
|
||||
|
||||
- Make sure the minimum CPU requirement set in the pkgconfig
|
||||
file is the same one as used for building. This also helps
|
||||
to maintain a reproducible build (boo#1228177).
|
||||
- Duplicate all options passed to `make` also to `make install`:
|
||||
The openblas build output suggests this: 'Note that any flags
|
||||
passed to make during build should also be passed to make install
|
||||
to circumvent any install errors'.
|
||||
This also makes sure that minimum CPU requirement is set in
|
||||
the pkgconfig file is the same one as used for building.
|
||||
This helps to maintain a reproducible build (boo#1228177).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 13 07:32:23 UTC 2024 - Andreas Schwab <schwab@suse.de>
|
||||
|
@ -445,13 +445,15 @@ make MAKE_NB_JOBS=$jobs %{?openblas_target} %{?build_flags} \
|
||||
# Install library and headers
|
||||
# Pass NUM_THREADS again, as it is not propagated from the build step
|
||||
# https://github.com/OpenMathLib/OpenBLAS/issues/4275
|
||||
%make_install %{?build_flags} \
|
||||
%{?openblas_target} \
|
||||
%make_install %{?openblas_target} %{?build_flags} \
|
||||
%{?openblas_opt} \
|
||||
NUM_THREADS=%{num_threads} \
|
||||
OPENBLAS_LIBRARY_DIR=%{p_libdir} \
|
||||
OPENBLAS_INCLUDE_DIR=%{p_includedir} \
|
||||
OPENBLAS_CMAKE_DIR=%{p_cmakedir} \
|
||||
%{?libnamesuffix} \
|
||||
%{!?with_hpc:%{?libnamesuffix} FC=gfortran CC=gcc%{?cc_v:-%{cc_v}} %{?cc_v:CEXTRALIB=""}} \
|
||||
%{?ldflags_tests:LDFLAGS_TESTS=%{ldflags_tests}} \
|
||||
%{?with_hpc:%{?cc_v:CC=gcc-%{cc_v} FC=gfortran-%{cc_v} CEXTRALIB=""}} \
|
||||
PREFIX=%{p_prefix}
|
||||
|
||||
# Delete info about OBS host cpu
|
||||
|
Loading…
x
Reference in New Issue
Block a user