aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2019-10-18 11:49:05 +0200
committerMarius Bakke <mbakke@fastmail.com>2019-10-18 14:35:56 +0200
commit43beec19f4f3e632a10c44127d0ff94b0a1c3214 (patch)
tree8ebd6f63599dfb88956ebfff91d037aaa3b27731 /gnu/packages
parenta31b745756669631285da474e838081965c7b892 (diff)
downloadpatches-43beec19f4f3e632a10c44127d0ff94b0a1c3214.tar
patches-43beec19f4f3e632a10c44127d0ff94b0a1c3214.tar.gz
gnu: looking-glass-client: Disable CPU-specific optimizations.
* gnu/packages/virtualization.scm (looking-glass-client)[source](modules, snippet): New fields.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/virtualization.scm12
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index fd442bde4b..a3504882a2 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -817,7 +817,17 @@ Machine Protocol.")
(file-name (git-file-name name version))
(sha256
(base32
- "02bq46ndmzq9cihazzn7xq1x7q5nzm7iw4l9lqzihxcxp9famkhw"))))
+ "02bq46ndmzq9cihazzn7xq1x7q5nzm7iw4l9lqzihxcxp9famkhw"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ ;; Do not create binaries optimized for the CPU of the build machine,
+ ;; for reproducibility and compatibility. TODO: in the next version
+ ;; of looking glass, this is exposed as a CMake configure option.
+ (substitute* "client/CMakeLists.txt"
+ (("-march=native")
+ ""))
+ #t))))
(build-system cmake-build-system)
(inputs `(("fontconfig" ,fontconfig)
("glu" ,glu)