From 5a3e65a1131ec1f53773f01877270007abfd8f4f Mon Sep 17 00:00:00 2001 From: jammyjellyfish Date: Mon, 8 May 2023 15:55:22 +0800 Subject: [PATCH] Support specify CC --- luajit.spec | 6 +++++- support-specify-cc.patch | 12 ++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 support-specify-cc.patch diff --git a/luajit.spec b/luajit.spec index c9209b4..3ed36f8 100644 --- a/luajit.spec +++ b/luajit.spec @@ -2,7 +2,7 @@ Name: luajit Version: 2.1.0 -Release: 5 +Release: 6 Summary: Just-In-Time Compiler for Lua License: MIT URL: http://luajit.org/ @@ -12,6 +12,7 @@ Source0: http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz # git diff v2.1.0-beta3..v2.1 > luajit-2.1-update.patch Patch0001: luajit-2.1-update.patch Patch0002: 0002-luajit-add-secure-compile-option-fstack.patch +Patch0003: support-specify-cc.patch ExclusiveArch: %{arm} %{ix86} x86_64 %{mips} aarch64 BuildRequires: gcc @@ -76,6 +77,9 @@ ln -s luajit-2.1.0-beta3 %{buildroot}%{_bindir}/luajit %{_mandir}/man1/%{name}.1* %changelog +* Mon May 8 2023 jammyjellyfish - 2.1.0-6 +- Support specify CC + * Fri Mar 24 2023 liyanan - 2.1.0-5 - Round upstream commit diff --git a/support-specify-cc.patch b/support-specify-cc.patch new file mode 100644 index 0000000..b2b5dca --- /dev/null +++ b/support-specify-cc.patch @@ -0,0 +1,12 @@ +diff -up a/src/Makefile b/src/Makefile +--- a/src/Makefile 2023-05-08 15:50:50.384621311 +0800 ++++ b/src/Makefile 2023-05-08 15:50:55.270194623 +0800 +@@ -27,7 +27,7 @@ NODOTABIVER= 51 + DEFAULT_CC = gcc + # + # LuaJIT builds as a native 32 or 64 bit binary by default. +-CC= $(DEFAULT_CC) ++CC?= $(DEFAULT_CC) + # + # Use this if you want to force a 32 bit build on a 64 bit multilib OS. + #CC= $(DEFAULT_CC) -m32 -- Gitee