From 2af242ee3030e209c5fac03c340938741056f780 Mon Sep 17 00:00:00 2001 From: lingsheng Date: Tue, 7 Sep 2021 20:18:20 +0800 Subject: [PATCH] Add BIND_NOW and PIE flags (cherry picked from commit e5a376391660a79d70d037e8cdaeae9032252a44) --- dietlibc.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dietlibc.spec b/dietlibc.spec index 7d36253..a162440 100644 --- a/dietlibc.spec +++ b/dietlibc.spec @@ -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 - 0.34-4 +- Add BIND_NOW and PIE flags + * Wed Jul 21 2021 lingsheng - 0.34-3 - Remove unnecessary buildrequire gdb