Add PIE flags
(cherry picked from commit 216ed2bdc0a81add4d659b1bd85202640cc6626c)
This commit is contained in:
parent
21bfb5a840
commit
f69fa50445
@ -1,4 +1,4 @@
|
||||
%global fixcflags -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables %xtra_fixcflags -Os -g3 -Werror-implicit-function-declaration -Wno-unused -Wno-switch -fPIE -Wl,-z,relro,-z,now
|
||||
%global fixcflags -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables %xtra_fixcflags -Os -g3 -Werror-implicit-function-declaration -Wno-unused -Wno-switch -fPIE -Wl,-pie -Wl,-z,relro,-z,now
|
||||
%global basemakeflags prefix=%pkglibdir BINDIR=%{_bindir} MAN1DIR=%{_mandir}/man1 CFLAGS="$RPM_OPT_FLAGS %fixcflags $XTRA_CFLAGS" PDIET=%pkglibdir STRIP=:
|
||||
|
||||
%global pkglibdir /usr/lib/dietlibc
|
||||
@ -11,7 +11,7 @@
|
||||
|
||||
Name: dietlibc
|
||||
Version: 0.34
|
||||
Release: 5
|
||||
Release: 6
|
||||
Summary: A libc optimized for small size
|
||||
License: GPLv2
|
||||
URL: http://www.fefe.de/dietlibc/
|
||||
@ -93,6 +93,9 @@ ulimit -m $[ 128*1024 ] -v $[ 256*1024 ] -d $[ 128*1024 ] -s 512
|
||||
%doc %{_mandir}/*/*
|
||||
|
||||
%changelog
|
||||
* Mon Jun 05 2023 wu lei <wu_lei@hoperun.com> - 0.34-6
|
||||
- Add PIE flags
|
||||
|
||||
* Sat Dec 03 2022 Ge Wang <wangge20@h-partners.com> - 0.34-5
|
||||
- Add RELRO flags
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user