!4 添加编译类型

From: @zhangchao13 
Reviewed-by: @duyiwei7w 
Signed-off-by: @duyiwei7w
This commit is contained in:
openeuler-ci-bot 2023-04-11 09:08:07 +00:00 committed by Gitee
commit 1715e564e8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From b67c8c1b249046b92966b0ad7768c07cbad59445 Mon Sep 17 00:00:00 2001
From: zhangchao13 <chaozhangm@isoftstone.com>
Date: Thu, 6 Apr 2023 14:48:07 +0800
Subject: [PATCH] fix
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index 5cf4e08..b8566dd 100644
--- a/configure
+++ b/configure
@@ -42,7 +42,7 @@ OSNAME=
UTF8_LOCALE=
AR=ar
-CC=cc
+CC=$CC
CFLAGS=
FATAL=0
LDADD=
--
2.39.2.windows.1

View File

@ -1,14 +1,16 @@
Name: mandoc
Version: 1.14.6
Release: 1
Release: 2
Summary: A suite of tools for compiling mdoc and man
License: ISC
URL: https://mandoc.bsd.lv/
Source0: https://mandoc.bsd.lv/snapshots/mandoc-%{version}.tar.gz
Patch0: 0001-add-compile-option.patch
BuildRequires: gcc
BuildRequires: make
BuildRequires: clang
BuildRequires: zlib-devel
# requirements for %%check
@ -69,6 +71,7 @@ echo 'INSTALL_DATA="${INSTALL} -m 0644"' >> configure.local
echo 'INSTALL_LIBMANDOC=1' >> configure.local
echo 'CFLAGS="%{optflags} -fPIC"' >> configure.local
export CC=clang
./configure
%make_build
@ -217,6 +220,8 @@ fi
%{_mandir}/man3/tbl.3*
%changelog
* Thu Apr 6 2023 changzhangm <chaozhangm@isoftstone.com> - 1.14.6-2
- Update to 1.14.6-2
* Fri Sep 23 2022 chendexi <chendexi@kylinos.cn> - 1.14.6-1
- Initial package