Force the recipe for Lua to use the spack compiler. (#2299)
* Force the recipe for Lua to use the spack compiler. I'm not sure how the old recipe worked for anyone. The Lua Makefiles set `CC=gcc` and for my spack environment the first `gcc` found in my `PATH` is `$SPACK_ROOT/lib/spack/env/gcc`, which is a directory. This caused the build to fail. My change drops the `-std=gnu99`, but this option doesn't appear to be required for a sucessful build. * Preserve the '-std=gnu99' compile option.
This commit is contained in:
		
				
					committed by
					
						
						Todd Gamblin
					
				
			
			
				
	
			
			
			
						parent
						
							8c0c3263e2
						
					
				
				
					commit
					05c6c40e36
				
			@@ -62,16 +62,18 @@ def install(self, spec, prefix):
 | 
				
			|||||||
        else:
 | 
					        else:
 | 
				
			||||||
            target = 'linux'
 | 
					            target = 'linux'
 | 
				
			||||||
        make('INSTALL_TOP=%s' % prefix,
 | 
					        make('INSTALL_TOP=%s' % prefix,
 | 
				
			||||||
             'MYLDFLAGS=-L%s -L%s ' % (
 | 
					             'MYLDFLAGS=-L%s -L%s' % (
 | 
				
			||||||
                 spec['readline'].prefix.lib,
 | 
					                 spec['readline'].prefix.lib,
 | 
				
			||||||
                 spec['ncurses'].prefix.lib),
 | 
					                 spec['ncurses'].prefix.lib),
 | 
				
			||||||
             'MYLIBS=-lncurses',
 | 
					             'MYLIBS=-lncurses',
 | 
				
			||||||
 | 
					             'CC=%s -std=gnu99' % spack_cc,
 | 
				
			||||||
             target)
 | 
					             target)
 | 
				
			||||||
        make('INSTALL_TOP=%s' % prefix,
 | 
					        make('INSTALL_TOP=%s' % prefix,
 | 
				
			||||||
             'MYLDFLAGS=-L%s -L%s ' % (
 | 
					             'MYLDFLAGS=-L%s -L%s' % (
 | 
				
			||||||
                 spec['readline'].prefix.lib,
 | 
					                 spec['readline'].prefix.lib,
 | 
				
			||||||
                 spec['ncurses'].prefix.lib),
 | 
					                 spec['ncurses'].prefix.lib),
 | 
				
			||||||
             'MYLIBS=-lncurses',
 | 
					             'MYLIBS=-lncurses',
 | 
				
			||||||
 | 
					             'CC=%s -std=gnu99' % spack_cc,
 | 
				
			||||||
             'install')
 | 
					             'install')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        with working_dir(os.path.join('luarocks', 'luarocks')):
 | 
					        with working_dir(os.path.join('luarocks', 'luarocks')):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user