!43 add PIE compiler options
From: @markeryang Reviewed-by: @zhoupengcheng11, @lvying6 Signed-off-by: @lvying6
This commit is contained in:
commit
de52ae80fd
@ -1,6 +1,6 @@
|
|||||||
Name: unzip
|
Name: unzip
|
||||||
Version: 6.0
|
Version: 6.0
|
||||||
Release: 50
|
Release: 51
|
||||||
Summary: A utility for unpacking zip files
|
Summary: A utility for unpacking zip files
|
||||||
License: Info-ZIP,Public Domain
|
License: Info-ZIP,Public Domain
|
||||||
URL: http://www.info-zip.org/UnZip.html
|
URL: http://www.info-zip.org/UnZip.html
|
||||||
@ -57,8 +57,9 @@ Package help includes man pages for unzip.
|
|||||||
%autosetup -n %{name}60 -p1
|
%autosetup -n %{name}60 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
export RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIE"
|
||||||
%make_build -f unix/Makefile CF_NOOPT="-I. -DUNIX $RPM_OPT_FLAGS -DNOMEMCPY -DIZ_HAVE_UXUIDGID -DNO_LCHMOD" \
|
%make_build -f unix/Makefile CF_NOOPT="-I. -DUNIX $RPM_OPT_FLAGS -DNOMEMCPY -DIZ_HAVE_UXUIDGID -DNO_LCHMOD" \
|
||||||
LFLAGS2="-Wl,-z,relro" generic_gcc
|
LFLAGS2="-Wl,-z,relro -pie" generic_gcc
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install -f unix/Makefile prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 INSTALL="cp -p"
|
%make_install -f unix/Makefile prefix=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 INSTALL="cp -p"
|
||||||
@ -75,6 +76,9 @@ make check -f unix/Makefile
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Mar 4 2023 yanglongkang <yanglongkang@h-partners.com> - 6.0-51
|
||||||
|
- add "PIE" compiler options
|
||||||
|
|
||||||
* Tue Sep 6 2022 dongyuzhen <dongyuzhen@h-partners.com> - 6.0-50
|
* Tue Sep 6 2022 dongyuzhen <dongyuzhen@h-partners.com> - 6.0-50
|
||||||
- fix CVE-2021-4217
|
- fix CVE-2021-4217
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user