From b331af6de6eab62be38b4abbce12cbbad414ba25 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Sat, 11 Jun 2016 21:02:33 -0500 Subject: [PATCH] lua-mpack: fix building with clang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit clang has some things considered “warnings” that gcc doesn’t so it is necessary to set “-Wno-error” to build under clang. --- pkgs/top-level/lua-packages.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/top-level/lua-packages.nix b/pkgs/top-level/lua-packages.nix index c90a8452c25b..7a315eaa4d23 100644 --- a/pkgs/top-level/lua-packages.nix +++ b/pkgs/top-level/lua-packages.nix @@ -398,6 +398,7 @@ let preInstall = '' mkdir -p $out/lib/lua/${lua.luaversion} ''; + NIX_CFLAGS_COMPILE = "-Wno-error -fpic"; installFlags = [ "USE_SYSTEM_LUA=yes" "LUA_VERSION_MAJ_MIN="