gnu: bristol: Remove SSE flags on platforms other than x86_64 and i686.
* gnu/packages/music.scm (bristol)[arguments]: Add phase "remove-sse-flags" to remove unsupported optimizations on platforms other than x86_64 and i686.
This commit is contained in:
		
							parent
							
								
									b153f9f0a9
								
							
						
					
					
						commit
						18ef998bfc
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		| 
						 | 
					@ -659,6 +659,16 @@ Laurens Hammond and Don Leslie.")
 | 
				
			||||||
               (base32
 | 
					               (base32
 | 
				
			||||||
                "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx"))))
 | 
					                "1fi2m4gmvxdi260821y09lxsimq82yv4k5bbgk3kyc3x1nyhn7vx"))))
 | 
				
			||||||
    (build-system gnu-build-system)
 | 
					    (build-system gnu-build-system)
 | 
				
			||||||
 | 
					    (arguments
 | 
				
			||||||
 | 
					     `(#:phases
 | 
				
			||||||
 | 
					       (modify-phases %standard-phases
 | 
				
			||||||
 | 
					         (add-after 'unpack 'remove-sse-flags
 | 
				
			||||||
 | 
					           (lambda* (#:key system #:allow-other-keys)
 | 
				
			||||||
 | 
					             (when (not (or (string-prefix? "x86_64" system)
 | 
				
			||||||
 | 
					                            (string-prefix? "i686" system)))
 | 
				
			||||||
 | 
					               (substitute* "bristol/Makefile.in"
 | 
				
			||||||
 | 
					                 (("-msse -mfpmath=sse") "")))
 | 
				
			||||||
 | 
					             #t)))))
 | 
				
			||||||
    (inputs
 | 
					    (inputs
 | 
				
			||||||
     `(("alsa-lib" ,alsa-lib)
 | 
					     `(("alsa-lib" ,alsa-lib)
 | 
				
			||||||
       ("jack" ,jack-1)
 | 
					       ("jack" ,jack-1)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue