new: clear CFLAGS in gcc and glibc

This commit is contained in:
wyj
2025-03-25 13:56:59 -04:00
parent 9d6c26af0f
commit 0dfb2a7276
2 changed files with 19 additions and 1 deletions
+6 -1
View File
@@ -17,6 +17,9 @@ src_prepare() {
}
src_build() {
old_cflags="$CFLAGS"
unset CFLAGS
mkdir -v build
pushd build > /dev/null
../configure --prefix=/usr \
@@ -30,6 +33,8 @@ src_build() {
--disable-fixincludes \
--with-system-zlib
make
export CFLAGS="$old_cflags"
popd
}
@@ -43,7 +48,7 @@ src_check() {
-e '/GOTPCREL/d' -i ../gcc/testsuite/gcc.target/i386/fentryname3.c
chown -R leaf .
su leaf -c "PATH=$PATH make -k check"
env -u CFLAGS su leaf -c "PATH=$PATH make -k check"
../contrib/test_summary | grep -A7 Summ
popd
}