e90881e93f
Add reproduciblecpu.patch to drop -march=native (boo#1100677) OBS-URL: https://build.opensuse.org/request/show/661771 OBS-URL: https://build.opensuse.org/package/show/science:HPC/opa-ff?expand=0&rev=51
26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
https://github.com/intel/opa-ff/issues/20
|
|
https://bugzilla.opensuse.org/show_bug.cgi?id=1100677 packages do not build reproducibly from compile-time CPU-detection
|
|
|
|
|
|
Author: Bernhard M. Wiedemann <bwiedemann@suse.de>
|
|
Date: 2018-12-28
|
|
|
|
Drop march=native to avoid CPU detection on build machine
|
|
|
|
in order to make builds reproducible.
|
|
See https://reproducible-builds.org/ for why this is good
|
|
|
|
Index: opa-ff-10.8.0.0.201.0.cb934204ad37/IbaTools/stream/Makefile
|
|
===================================================================
|
|
--- opa-ff-10.8.0.0.201.0.cb934204ad37.orig/IbaTools/stream/Makefile
|
|
+++ opa-ff-10.8.0.0.201.0.cb934204ad37/IbaTools/stream/Makefile
|
|
@@ -110,7 +110,7 @@ INCLUDE_SUBDIR =
|
|
# (in addition to LOCALDEPLIBS)
|
|
#LOCAL_LIB_DIRS = User library directories for libpaths [Empty]
|
|
|
|
-CLOCAL = $(CPIE) -march=native -mcmodel=medium -DSTREAM_ARRAY_SIZE=353783808 -fopenmp
|
|
+CLOCAL = $(CPIE) -mcmodel=medium -DSTREAM_ARRAY_SIZE=353783808 -fopenmp
|
|
LDLOCAL = -fopenmp
|
|
|
|
# Include Make Rules definitions and rules
|