gnu: looking-glass-client: Disable CPU-specific optimizations.
* gnu/packages/virtualization.scm (looking-glass-client)[source](modules, snippet): New fields.
This commit is contained in:
		
							parent
							
								
									a31b745756
								
							
						
					
					
						commit
						43beec19f4
					
				
					 1 changed files with 11 additions and 1 deletions
				
			
		| 
						 | 
					@ -817,7 +817,17 @@ Machine Protocol.")
 | 
				
			||||||
       (file-name (git-file-name name version))
 | 
					       (file-name (git-file-name name version))
 | 
				
			||||||
       (sha256
 | 
					       (sha256
 | 
				
			||||||
        (base32
 | 
					        (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)
 | 
					     (build-system cmake-build-system)
 | 
				
			||||||
     (inputs `(("fontconfig" ,fontconfig)
 | 
					     (inputs `(("fontconfig" ,fontconfig)
 | 
				
			||||||
               ("glu" ,glu)
 | 
					               ("glu" ,glu)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue