From 6d5fbd8c48f7714251ace75781b63be60eb9c9ec Mon Sep 17 00:00:00 2001 From: Chan Lee Date: Tue, 31 Dec 2024 13:08:11 +0800 Subject: [PATCH] openssl: remove temporary file after use --- packages/o/openssl/makefile/patch.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/o/openssl/makefile/patch.lua b/packages/o/openssl/makefile/patch.lua index 80974e9a9f0..ff45c659f6e 100644 --- a/packages/o/openssl/makefile/patch.lua +++ b/packages/o/openssl/makefile/patch.lua @@ -5,6 +5,7 @@ function _patch_for_llvm_rc(package, opt) local tmpfile = path.unix(os.tmpfile() .. ".c") io.writefile(tmpfile, "int main(void) { return 0; }\n") local compile_out, compile_err = try {function() return os.iorun(format("%s -v %s %s", cc, cflags, tmpfile)) end} + os.tryrm(tmpfile) local include_dirs = {} local in_include_section = false for _, verbose_command in ipairs({compile_out, compile_err}) do