From 52b8bd9c5946dc2f9b0f5163817f2fdca749c464 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Mon, 7 Jul 2025 21:54:15 +0300 Subject: [PATCH] Add glibc configuration options --- pkg.info | 2 +- source.sh | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pkg.info b/pkg.info index 5720903..bc192f7 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,7 @@ name: glibc description: The GNU C Library version: 2.41 -revision: 5 +revision: 6 url: https://www.gnu.org/software/libc/ license: GPL2-or-later,LGPL2.1-or-later,BSD-3-Clause architecture: any diff --git a/source.sh b/source.sh index 9e53154..4d0551e 100644 --- a/source.sh +++ b/source.sh @@ -21,13 +21,19 @@ build() { # Install system binaries to /usr/sbin echo "rootsbindir=/usr/sbin" > configparms + # _FORTIFY_SOURCE=3 can result in testsuite failures. It is instead enabled through --enable-fortify-source + CFLAGS=${CFLAGS/-Wp,-D_FORTIFY_SOURCE=3/} + ../configure --prefix=/usr \ --with-headers=/usr/include \ + --enable-bind-now \ + --enable-fortify-source \ --enable-kernel=5.4 \ --enable-cet \ --enable-stack-protector=strong \ - --disable-werror \ --disable-nscd \ + --disable-profile \ + --disable-werror \ libc_cv_slibdir=/usr/lib make