File reproducible.patch of Package ffado
Author: Bernhard M. Wiedemann <bwiedemann suse.de>
Date: 2018-08-17
https://bugzilla.opensuse.org/show_bug.cgi?id=1100677 packages do not build reproducibly from compile-time CPU-detection
Always build with SSE2, independent of build system CPU
Index: libffado-2.4.0/SConstruct
===================================================================
--- libffado-2.4.0.orig/SConstruct
+++ libffado-2.4.0/SConstruct
@@ -741,16 +741,10 @@ def cc_flags_x86(cpuinfo, enable_optimiz
opt_flags = [
('sse', ('-mfpmath=sse', '-msse')),
('sse2', '-msse2'),
- ('ssse3', '-mssse3'),
- ('sse4', '-msse4'),
- ('sse4_1', '-msse4.1'),
- ('sse4_2', '-msse4.2'),
- ('sse4a', '-msse4a'),
- ('3dnow', '-m3dnow'),
]
if enable_optimizations:
for flag, gccopt in opt_flags:
- if flag in cpuinfo.x86_flags:
+ if True:
if isinstance(gccopt, (tuple, list)):
cc_opts.extend(gccopt)
else: