glibc: enable -fstack-protector=strong.
This commit is contained in:
parent
3daffce155
commit
ef75a245f0
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'glibc'
|
||||
pkgname=glibc
|
||||
version=2.25
|
||||
revision=5
|
||||
revision=6
|
||||
bootstrap=yes
|
||||
short_desc="The GNU C library"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
|
@ -92,7 +92,7 @@ do_configure() {
|
|||
configure_args+=" --with-headers=${XBPS_MASTERDIR}/usr/include"
|
||||
fi
|
||||
|
||||
# Disable SSP
|
||||
# Disable SSP from CFLAGS (enabled below)
|
||||
export CFLAGS="${CFLAGS/-fstack-protector-strong/}"
|
||||
# Disable FORTIFY_SOURCE
|
||||
export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=?/}"
|
||||
|
@ -106,6 +106,7 @@ do_configure() {
|
|||
--enable-stack-guard-randomization \
|
||||
--without-selinux --without-cvs --without-gd \
|
||||
--disable-lock-elision \
|
||||
--enable-stack-protector=strong \
|
||||
libc_cv_rootsbindir=/usr/bin \
|
||||
libc_cv_rtlddir=${_libdir} libc_cv_slibdir=${_libdir}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue