!26 [sync] PR-24: /usr/bin/container-exception-logger文件添加-pie编译选项

From: @openeuler-sync-bot 
Reviewed-by: @wang--ge 
Signed-off-by: @wang--ge
This commit is contained in:
openeuler-ci-bot 2023-03-07 03:15:30 +00:00 committed by Gitee
commit 949f80e430
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: container-exception-logger Name: container-exception-logger
Version: 1.0.3 Version: 1.0.3
Release: 4 Release: 5
Summary: Logging from a container to a host Summary: Logging from a container to a host
License: GPLv3+ License: GPLv3+
URL: https://github.com/abrt/container-exception-logger URL: https://github.com/abrt/container-exception-logger
@ -21,7 +21,7 @@ Help document for the %{name} package.
%autosetup -n %{name}-%{name}-%{version}-1 -p1 %autosetup -n %{name}-%{name}-%{version}-1 -p1
%build %build
gcc %{optflags} src/%{name}.c -o src/container-exception-logger gcc %{optflags} -fPIE src/%{name}.c -o src/container-exception-logger
a2x -d manpage -f manpage man/container-exception-logger.1.asciidoc a2x -d manpage -f manpage man/container-exception-logger.1.asciidoc
%install %install
@ -39,6 +39,9 @@ cp man/container-exception-logger.1 %{buildroot}/%{_mandir}/man1/container-excep
%{_mandir}/man1/container-exception-logger.1.* %{_mandir}/man1/container-exception-logger.1.*
%changelog %changelog
* Fri Mar 03 2023 wulei <wulei80@h-partners.com> - 1.0.3-5
- Add the compilation option pie
* Mon May 31 2021 baizhonggui <baizhonggui@huawei.com> 1.0.3-4 * Mon May 31 2021 baizhonggui <baizhonggui@huawei.com> 1.0.3-4
- Add gcc in BuildRequires - Add gcc in BuildRequires