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:
Kelly Thompson 2016-11-12 21:46:59 -07:00 committed by Todd Gamblin
parent 8c0c3263e2
commit 05c6c40e36

View File

@ -62,16 +62,18 @@ def install(self, spec, prefix):
else:
target = 'linux'
make('INSTALL_TOP=%s' % prefix,
'MYLDFLAGS=-L%s -L%s ' % (
'MYLDFLAGS=-L%s -L%s' % (
spec['readline'].prefix.lib,
spec['ncurses'].prefix.lib),
'MYLIBS=-lncurses',
'CC=%s -std=gnu99' % spack_cc,
target)
make('INSTALL_TOP=%s' % prefix,
'MYLDFLAGS=-L%s -L%s ' % (
'MYLDFLAGS=-L%s -L%s' % (
spec['readline'].prefix.lib,
spec['ncurses'].prefix.lib),
'MYLIBS=-lncurses',
'CC=%s -std=gnu99' % spack_cc,
'install')
with working_dir(os.path.join('luarocks', 'luarocks')):