gnu: openblas: Use dynamic arch support for aarch64-linux.
* gnu/packages/maths.scm (openblas)[arguments]: Adjust make-flags to build multiple architecture optimized versions for aarch64-linux.
This commit is contained in:
		
							parent
							
								
									7bef3be1d3
								
							
						
					
					
						commit
						b8894e8065
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
					@ -3877,7 +3877,8 @@ parts of it.")
 | 
				
			||||||
                       (string-prefix? "i686" system))
 | 
					                       (string-prefix? "i686" system))
 | 
				
			||||||
                   '("DYNAMIC_ARCH=1"))
 | 
					                   '("DYNAMIC_ARCH=1"))
 | 
				
			||||||
                  ;; On some of these architectures the CPU can't be detected.
 | 
					                  ;; On some of these architectures the CPU can't be detected.
 | 
				
			||||||
                  ((string-prefix? "powerpc64le" system)
 | 
					                  ((or (string-prefix? "powerpc64le" system)
 | 
				
			||||||
 | 
					                       (string-prefix? "aarch64" system))
 | 
				
			||||||
                   '("DYNAMIC_ARCH=1"
 | 
					                   '("DYNAMIC_ARCH=1"
 | 
				
			||||||
                     "TARGET=GENERIC"))
 | 
					                     "TARGET=GENERIC"))
 | 
				
			||||||
                  ;; On MIPS we force the "SICORTEX" TARGET, as for the other
 | 
					                  ;; On MIPS we force the "SICORTEX" TARGET, as for the other
 | 
				
			||||||
| 
						 | 
					@ -3885,9 +3886,6 @@ parts of it.")
 | 
				
			||||||
                  ;; for Loongson cores are used.
 | 
					                  ;; for Loongson cores are used.
 | 
				
			||||||
                  ((string-prefix? "mips" system)
 | 
					                  ((string-prefix? "mips" system)
 | 
				
			||||||
                   '("TARGET=SICORTEX"))
 | 
					                   '("TARGET=SICORTEX"))
 | 
				
			||||||
                  ;; On aarch64 force the generic 'armv8-a' target
 | 
					 | 
				
			||||||
                  ((string-prefix? "aarch64" system)
 | 
					 | 
				
			||||||
                   '("TARGET=ARMV8"))
 | 
					 | 
				
			||||||
                  ;; Failed to detect CPU.
 | 
					                  ;; Failed to detect CPU.
 | 
				
			||||||
                  ((string-prefix? "armhf" system)
 | 
					                  ((string-prefix? "armhf" system)
 | 
				
			||||||
                   '("TARGET=ARMV7"))
 | 
					                   '("TARGET=ARMV7"))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue