diff --git a/third_party/cargo/vendor/luajit-src-210.1.3+restyfe08842/src/lib.rs b/third_party/cargo/vendor/luajit-src-210.1.3+restyfe08842/src/lib.rs index 25390fc..abae2fb 100644 --- a/third_party/cargo/vendor/luajit-src-210.1.3+restyfe08842/src/lib.rs +++ b/third_party/cargo/vendor/luajit-src-210.1.3+restyfe08842/src/lib.rs @@ -105,6 +105,13 @@ impl Build { make.env("CROSS", prefix); } + // HACK: the luajit Makefile wants `uname` to decuce this, but the Bazel sandbox on Linux + // doesn't provide that. Let's assume that if we ever get to `build_unix`, we're building + // on some generic Linux for some generic Linux. This might have to be fixed if that + // assumption ever changes. + make.env("TARGET_SYS", "Linux"); + make.env("HOST_SYS", "Linux"); + make.env("BUILDMODE", "static"); make.env("XCFLAGS", "-fPIC"); self.run_command(make, "building LuaJIT");