From 05c6c40e36b340e9489313eb1538a5d3e0b72c89 Mon Sep 17 00:00:00 2001 From: Kelly Thompson Date: Sat, 12 Nov 2016 21:46:59 -0700 Subject: 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. --- var/spack/repos/builtin/packages/lua/package.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/var/spack/repos/builtin/packages/lua/package.py b/var/spack/repos/builtin/packages/lua/package.py index ca0a481a83..4da2c99e04 100644 --- a/var/spack/repos/builtin/packages/lua/package.py +++ b/var/spack/repos/builtin/packages/lua/package.py @@ -62,16 +62,18 @@ class Lua(Package): 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')): -- cgit v1.2.3-60-g2f50