feat: add CFLAGS support

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