Support specify CC
Signed-off-by: luofeng14 <luofeng13@huawei.com> (cherry picked from commit a693eb1380f3138627a01780b358266be9067412)
This commit is contained in:
parent
a6cda3857d
commit
52d4549370
@ -1,6 +1,6 @@
|
|||||||
Name: libcap
|
Name: libcap
|
||||||
Version: 2.69
|
Version: 2.69
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: A library for getting and setting POSIX.1e draft 15 capabilities
|
Summary: A library for getting and setting POSIX.1e draft 15 capabilities
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://sites.google.com/site/fullycapable
|
URL: https://sites.google.com/site/fullycapable
|
||||||
@ -8,6 +8,7 @@ Source0: https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/%{n
|
|||||||
|
|
||||||
Patch0: libcap-buildflags.patch
|
Patch0: libcap-buildflags.patch
|
||||||
Patch1: backport-libcap-Ensure-the-XATTR_NAME_CAPS-is-define.patch
|
Patch1: backport-libcap-Ensure-the-XATTR_NAME_CAPS-is-define.patch
|
||||||
|
Patch2: support-specify-cc.patch
|
||||||
|
|
||||||
BuildRequires: libattr-devel pam-devel perl-interpreter gcc
|
BuildRequires: libattr-devel pam-devel perl-interpreter gcc
|
||||||
|
|
||||||
@ -70,6 +71,9 @@ chmod +x %{buildroot}/%{_libdir}/*.so.*
|
|||||||
%{_mandir}/man8/*.gz
|
%{_mandir}/man8/*.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Apr 16 2023 jammyjellyfish <jammyjellyfish255@outlook.com> - 2.69-2
|
||||||
|
- Support specify CC
|
||||||
|
|
||||||
* Thu Jul 20 2023 wangyunjia <yunjia.wang@huawei.com> - 2.69-1
|
* Thu Jul 20 2023 wangyunjia <yunjia.wang@huawei.com> - 2.69-1
|
||||||
- update version to 2.69
|
- update version to 2.69
|
||||||
|
|
||||||
|
|||||||
12
support-specify-cc.patch
Normal file
12
support-specify-cc.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -up libcap-2.66/Make.Rules.orig2 libcap-2.66/Make.Rules
|
||||||
|
--- libcap-2.66/Make.Rules.orig2 2023-04-16 17:46:55.922279005 +0800
|
||||||
|
+++ libcap-2.66/Make.Rules 2023-04-16 17:46:13.518097014 +0800
|
||||||
|
@@ -66,7 +66,7 @@ DEFINES := -D_LARGEFILE64_SOURCE -D_FILE
|
||||||
|
SYSTEM_HEADERS = /usr/include
|
||||||
|
|
||||||
|
SUDO := sudo
|
||||||
|
-CC := $(CROSS_COMPILE)gcc
|
||||||
|
+CC ?= $(CROSS_COMPILE)gcc
|
||||||
|
LD := $(CC) -Wl,-x -shared
|
||||||
|
AR := $(CROSS_COMPILE)ar
|
||||||
|
RANLIB := $(CROSS_COMPILE)ranlib
|
||||||
Loading…
x
Reference in New Issue
Block a user