From 2c4e671abc8d58be93fc2fcb7b2ebd6329498e94 Mon Sep 17 00:00:00 2001 From: lilinjie Date: Wed, 26 Apr 2023 13:51:05 +0800 Subject: [PATCH 1/2] fix issue I6Y517 --- openresty.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openresty.spec b/openresty.spec index 6623aa4..4ef5f27 100644 --- a/openresty.spec +++ b/openresty.spec @@ -227,10 +227,11 @@ a single box. %patch1 -p1 %build +CC ?= gcc ./configure \ --out-dir='build' \ --prefix="%{orprefix}" \ - --with-cc='ccache gcc -fdiagnostics-color=always' \ + --with-cc='ccache $(CC) -fdiagnostics-color=always' \ --with-cc-opt="-DNGX_LUA_ABORT_AT_PANIC -I%{zlib_prefix}/include -I%{pcre_prefix}/include -I%{openssl_prefix}/include" \ --with-ld-opt="-L%{zlib_prefix}/lib -L%{pcre_prefix}/lib -L%{openssl_prefix}/lib -Wl,-rpath,%{zlib_prefix}/lib:%{pcre_prefix}/lib:%{openssl_prefix}/lib" \ --with-pcre-jit \ @@ -267,7 +268,7 @@ make -f 'Makefile-build' %{?_smp_mflags} ./configure \ --out-dir='build-debug' \ --prefix="%{orprefix_debug}" \ - --with-cc='ccache gcc -fdiagnostics-color=always' \ + --with-cc='ccache $(CC) -fdiagnostics-color=always' \ --with-debug \ --with-cc-opt="-I%{zlib_prefix_debug}/include -I%{pcre_prefix_debug}/include -I%{openssl_prefix_debug}/include -O0" \ --with-ld-opt="-L%{zlib_prefix_debug}/lib -L%{pcre_prefix_debug}/lib -L%{openssl_prefix_debug}/lib -Wl,-rpath,%{zlib_prefix_debug}/lib:%{pcre_prefix_debug}/lib:%{openssl_prefix_debug}/lib" \ -- Gitee From 54a9f4f1d761b4531abce1f81c13b9d54c11e8a9 Mon Sep 17 00:00:00 2001 From: lilinjie Date: Wed, 26 Apr 2023 18:20:33 +0800 Subject: [PATCH 2/2] update --- openresty.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openresty.spec b/openresty.spec index 4ef5f27..4bdd308 100644 --- a/openresty.spec +++ b/openresty.spec @@ -1,6 +1,6 @@ Name: openresty Version: 1.19.3.1 -Release: 2 +Release: 3 Summary: OpenResty, scalable web platform by extending NGINX with Lua Group: System Environment/Daemons @@ -444,6 +444,9 @@ fi %{orprefix_debug}/COPYRIGHT %changelog +* Wed Apr 26 2023 lilinjie 1.19.3.1-3 +- Fix CC compiler support + * Mon Dec 13 2021 liweigang 1.19.3.1-2 - delete %dist -- Gitee