sw4lite: Added -lgfortran and set to serial build (#6055)
* Added -lgfortran and set to serial build * Update package.py
This commit is contained in:
		
				
					committed by
					
						
						Christoph Junghans
					
				
			
			
				
	
			
			
			
						parent
						
							d98e337706
						
					
				
				
					commit
					180dcfc652
				
			@@ -48,6 +48,8 @@ class Sw4lite(MakefilePackage):
 | 
			
		||||
    depends_on('lapack')
 | 
			
		||||
    depends_on('mpi')
 | 
			
		||||
 | 
			
		||||
    parallel = False
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def build_targets(self):
 | 
			
		||||
        targets = []
 | 
			
		||||
@@ -81,7 +83,11 @@ def build_targets(self):
 | 
			
		||||
        targets.append('EXTRA_CXX_FLAGS=')
 | 
			
		||||
        targets.append('EXTRA_FORT_FLAGS=')
 | 
			
		||||
        lapack_blas = spec['lapack'].libs + spec['blas'].libs
 | 
			
		||||
        targets.append('EXTRA_LINK_FLAGS={0}'.format(lapack_blas.ld_flags))
 | 
			
		||||
        if spec.satisfies('%gcc'):
 | 
			
		||||
            targets.append('EXTRA_LINK_FLAGS={0} -lgfortran'
 | 
			
		||||
                           .format(lapack_blas.ld_flags))
 | 
			
		||||
        else:
 | 
			
		||||
            targets.append('EXTRA_LINK_FLAGS={0}'.format(lapack_blas.ld_flags))
 | 
			
		||||
 | 
			
		||||
        return targets
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user