!34 支持指定 CC 编译

From: @jammyjellyfish 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
This commit is contained in:
openeuler-ci-bot 2023-07-13 07:36:17 +00:00 committed by Gitee
commit 7b2a1f03b8
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 17 additions and 1 deletions

View File

@ -1,7 +1,7 @@
%global commit_hash d87d682b6db9c04c1bee34e5cadbbcae4e6d9a67
Name: lmdb
Version: 0.9.30
Release: 2
Release: 3
Summary: An extraordinarily fast, memory-efficient database
License: OLDAP-2.8
URL: http://symas.com/lmdb/
@ -12,6 +12,7 @@ BuildRequires: gcc, make, doxygen,
Patch0: lmdb-make.patch
Patch1: lmdb-s390-check.patch
Patch2: support-specify-cc.patch
Provides: %{name}-libs
Obsoletes: %{name}-libs < %{version}-%{release}
@ -89,6 +90,9 @@ popd
%license libraries/lib%{name}/LICENSE
%changelog
* Mon Apr 17 2023 jammyjellyfish <jammyjellyfish255@outlook.com> - 0.9.30-3
- Support specify CC
* Fri Nov 25 2022 wangjiang <wangjiang37@h-partners.com> - 0.9.30-2
- fix obsoletes in spec

12
support-specify-cc.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up openldap-LMDB_0.9.30-d87d682b6db9c04c1bee34e5cadbbcae4e6d9a67/libraries/liblmdb/Makefile.orig2 openldap-LMDB_0.9.30-d87d682b6db9c04c1bee34e5cadbbcae4e6d9a67/libraries/liblmdb/Makefile
--- openldap-LMDB_0.9.30-d87d682b6db9c04c1bee34e5cadbbcae4e6d9a67/libraries/liblmdb/Makefile.orig2 2023-04-17 13:58:34.001243208 +0800
+++ openldap-LMDB_0.9.30-d87d682b6db9c04c1bee34e5cadbbcae4e6d9a67/libraries/liblmdb/Makefile 2023-04-17 14:01:51.153795000 +0800
@@ -18,7 +18,7 @@
# There may be other macros in mdb.c of interest. You should
# read mdb.c before changing any of them.
#
-CC = gcc
+CC ?= gcc
AR = ar
W = -W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized
THREADS = -pthread