reenable PIE in the captree tool
This commit is contained in:
parent
ea9717d27d
commit
95e684ecd7
1 changed files with 6 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
Name: libcap
|
||||
Version: 2.69
|
||||
Release: 6%{?dist}
|
||||
Release: 7%{?dist}
|
||||
Summary: Library for getting and setting POSIX.1e capabilities
|
||||
URL: https://sites.google.com/site/fullycapable/
|
||||
License: BSD-3-Clause OR GPL-2.0-only
|
||||
|
|
@ -63,13 +63,13 @@ gzip -cd %{SOURCE0} | %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1
|
|||
|
||||
|
||||
%build
|
||||
%make_build prefix=%{_prefix} lib=%{_lib} GO_BUILD_FLAGS="-ldflags='-B gobuildid'" all
|
||||
%make_build prefix=%{_prefix} lib=%{_lib} CGO_REQUIRED=1 GO_BUILD_FLAGS="-buildmode=pie -ldflags='-B gobuildid'" all
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%install
|
||||
%make_install prefix=%{_prefix} lib=%{_lib} GO_BUILD_FLAGS="-ldflags='-B gobuildid'"
|
||||
%make_install prefix=%{_prefix} lib=%{_lib} CGO_REQUIRED=1 GO_BUILD_FLAGS="-buildmode=pie -ldflags='-B gobuildid'"
|
||||
|
||||
mkdir -p %{buildroot}/%{_mandir}/man{2,3,5,8}
|
||||
mv -f doc/*.3 %{buildroot}/%{_mandir}/man3/
|
||||
|
|
@ -114,6 +114,9 @@ chmod +x %{buildroot}/%{_libdir}/*.so.*
|
|||
%endif
|
||||
|
||||
%changelog
|
||||
* Fri Apr 05 2024 Carlos Rodriguez-Fernandez <carlosrodrifernandez@gmail.com> - 2.69-7
|
||||
- Reenable PIE in the captree tool
|
||||
|
||||
* Thu Apr 04 2024 Carlos Rodriguez-Fernandez <carlosrodrifernandez@gmail.com> - 2.69-6
|
||||
- Fix incompatibility of the build with go 1.22.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue