reenabled '-fno-stack-protector' for non-i386/x86_64 archs
This commit is contained in:
parent
1f3f73ff62
commit
899a2daa2e
1 changed files with 11 additions and 1 deletions
|
|
@ -35,6 +35,7 @@ Source0: http://www.kernel.org/pub/linux/libs/dietlibc/%name-%version.tar.bz2
|
|||
Source1: http://www.fefe.de/dietlibc/%name-%version.tar.bz2.sig
|
||||
Patch1: dietlibc-0.28-setpriority.patch
|
||||
Patch10: dietlibc-0.29-scall.patch
|
||||
Patch20: dietlibc-0.29-nostackprotector.patch
|
||||
Patch30: dietlibc-0.30-longdouble.patch
|
||||
Patch31: dietlibc-0.31-defpath.patch
|
||||
Patch32: dietlibc-0.31-stacksmash.patch
|
||||
|
|
@ -73,9 +74,18 @@ This package contains the dynamic libraries for dietlibc.
|
|||
%patch32 -p1 -b .stacksmash
|
||||
%patch33 -p1 -b .stacksmash-dyn
|
||||
|
||||
%ifnarch i386 x86_64
|
||||
%patch20 -p1 -b .nostackprotector
|
||||
sed -i -e 's!^#define WANT_SSP$!// \0!g;
|
||||
s!.*\(#define WANT_STACKGAP\).*!\1!g' dietfeatures.h
|
||||
%global xtra_fixcflags -fno-stack-protector
|
||||
%else
|
||||
%global xtra_fixcflags %nil
|
||||
%endif
|
||||
|
||||
sed -i -e 's!strip !: !g' Makefile
|
||||
|
||||
%global fixcflags -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables -Os
|
||||
%global fixcflags -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables %xtra_fixcflags -Os
|
||||
%global basemakeflags prefix=%_libdir/dietlibc BINDIR=%_bindir MAN1DIR=%_mandir/man1 COMMENT=: CFLAGS="$RPM_OPT_FLAGS %fixcflags" PDIET=%_libdir/dietlibc
|
||||
%global makeflags %basemakeflags
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue