mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 08:22:56 +02:00
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'
|
# Template file for 'glibc'
|
||||||
pkgname=glibc
|
pkgname=glibc
|
||||||
version=2.25
|
version=2.25
|
||||||
revision=5
|
revision=6
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
short_desc="The GNU C library"
|
short_desc="The GNU C library"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
|
@ -92,7 +92,7 @@ do_configure() {
|
||||||
configure_args+=" --with-headers=${XBPS_MASTERDIR}/usr/include"
|
configure_args+=" --with-headers=${XBPS_MASTERDIR}/usr/include"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Disable SSP
|
# Disable SSP from CFLAGS (enabled below)
|
||||||
export CFLAGS="${CFLAGS/-fstack-protector-strong/}"
|
export CFLAGS="${CFLAGS/-fstack-protector-strong/}"
|
||||||
# Disable FORTIFY_SOURCE
|
# Disable FORTIFY_SOURCE
|
||||||
export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=?/}"
|
export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=?/}"
|
||||||
|
@ -106,6 +106,7 @@ do_configure() {
|
||||||
--enable-stack-guard-randomization \
|
--enable-stack-guard-randomization \
|
||||||
--without-selinux --without-cvs --without-gd \
|
--without-selinux --without-cvs --without-gd \
|
||||||
--disable-lock-elision \
|
--disable-lock-elision \
|
||||||
|
--enable-stack-protector=strong \
|
||||||
libc_cv_rootsbindir=/usr/bin \
|
libc_cv_rootsbindir=/usr/bin \
|
||||||
libc_cv_rtlddir=${_libdir} libc_cv_slibdir=${_libdir}
|
libc_cv_rtlddir=${_libdir} libc_cv_slibdir=${_libdir}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue