!3 fix issue:源代码 makefile 文件指定了使用 gcc 编译器进行编译,导致编译失败。

From: @zhangchao13 
Reviewed-by: @overweight 
Signed-off-by: @overweight
This commit is contained in:
openeuler-ci-bot 2023-05-25 03:52:47 +00:00 committed by Gitee
commit 5eab3e87c9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 8b7d8a33a409b87883041b06a9280c08c67e5c46 Mon Sep 17 00:00:00 2001
From: zhangchao13 <chaozhangm@isoftstone.com>
Date: Fri, 21 Apr 2023 15:53:49 +0800
Subject: [PATCH] lua-lpeg-fix-cc
---
makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/makefile b/makefile
index 1e32195..a2dac12 100644
--- a/makefile
+++ b/makefile
@@ -23,7 +23,7 @@ CWARNS = -Wall -Wextra -pedantic \
CFLAGS = $(CWARNS) $(COPT) -std=c99 -I$(LUADIR) -fPIC
-CC = gcc
+CC ?= gcc
FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o
--
2.33.0

View File

@ -2,12 +2,13 @@
Name: lua-%{mod_name}
Version: 1.0.2
Release: 2
Release: 3
Summary: Parsing Expression Grammars For Lua
License: MIT
URL: http://www.inf.puc-rio.br/~roberto/lpeg/
Source0: http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-%{version}.tar.gz
Patch0: 0001-lua-lpeg-fix-cc.patch
BuildRequires: gcc, lua-devel
Requires: lua, lua(abi)
@ -58,6 +59,9 @@ make test
%{lua_pkgdir}/*
%changelog
* Fri Apr 21 2023 Zhang Chao <chaozhangm@isoftstone.com> - 1.0.2-3
- Fix CC compiler support
* Sat Sep 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0.2-2
- Modify spec error information