Add BIND_NOW and PIE flags

(cherry picked from commit e5a376391660a79d70d037e8cdaeae9032252a44)
This commit is contained in:
lingsheng 2021-09-07 20:18:20 +08:00 committed by openeuler-sync-bot
parent b374cf2763
commit 2af242ee30

View File

@ -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
%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,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: 3
Release: 4
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
* Tue Sep 07 2021 lingsheng <lingsheng@huawei.com> - 0.34-4
- Add BIND_NOW and PIE flags
* Wed Jul 21 2021 lingsheng <lingsheng@huawei.com> - 0.34-3
- Remove unnecessary buildrequire gdb