fix issue:源代码 makefile 文件指定了使用 gcc 编译器进行编译,导致编译失败。
This commit is contained in:
parent
60923491e8
commit
df1ddde176
25
0001-lua-lpeg-fix-cc.patch
Normal file
25
0001-lua-lpeg-fix-cc.patch
Normal 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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user