fixing build issues for gcc on osx
This commit is contained in:
		@@ -55,8 +55,16 @@ def install(self, spec, prefix):
 | 
				
			|||||||
        if sys.platform != 'darwin':
 | 
					        if sys.platform != 'darwin':
 | 
				
			||||||
            raise InstallError('vecLibFort can be installed on macOS only')
 | 
					            raise InstallError('vecLibFort can be installed on macOS only')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        make('all')
 | 
					        filter_file(r'^PREFIX=.*', '', 'Makefile')
 | 
				
			||||||
        make('PREFIX=%s' % prefix, 'install')
 | 
					
 | 
				
			||||||
 | 
					        make_args = []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if spec.satisfies('%gcc@6:'):
 | 
				
			||||||
 | 
					            make_args += ['CFLAGS=-flax-vector-conversions']
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        make_args += ['PREFIX=%s' % prefix, 'install']
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        make(*make_args)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # test
 | 
					        # test
 | 
				
			||||||
        fc = which('fc')
 | 
					        fc = which('fc')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user