From d270def1c198571475ebed264e93a34e2110d99a Mon Sep 17 00:00:00 2001 From: wu-leilei Date: Fri, 3 Mar 2023 11:43:50 +0800 Subject: [PATCH] Add the compilation option pie Add the compilation option pie --- container-exception-logger.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/container-exception-logger.spec b/container-exception-logger.spec index ef300d6..a6f9c18 100644 --- a/container-exception-logger.spec +++ b/container-exception-logger.spec @@ -1,6 +1,6 @@ Name: container-exception-logger Version: 1.0.3 -Release: 4 +Release: 5 Summary: Logging from a container to a host License: GPLv3+ 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 %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 %install @@ -39,6 +39,9 @@ cp man/container-exception-logger.1 %{buildroot}/%{_mandir}/man1/container-excep %{_mandir}/man1/container-exception-logger.1.* %changelog +* Fri Mar 03 2023 wulei - 1.0.3-5 +- Add the compilation option pie + * Mon May 31 2021 baizhonggui 1.0.3-4 - Add gcc in BuildRequires -- Gitee