games-fps/crispy-doom: Fixed CFLAGS bug

Fixed bug where CFLAGS doesn't respect make.conf settings.

Signed-off-by: Abdelrahman Sarhan <abdulrahmanayman1@gmail.com>
This commit is contained in:
Abdelrahman Sarhan
2024-10-22 15:20:32 -04:00
parent 22675716b6
commit 17d3645a5b
4 changed files with 32 additions and 0 deletions

View File

@@ -42,6 +42,10 @@ DOCS=(
"README.Strife.md"
)
PATCHES=(
${FILESDIR}/${P}-cflags.patch
)
src_prepare() {
default

View File

@@ -43,6 +43,10 @@ DOCS=(
"README.Strife.md"
)
PATCHES=(
${FILESDIR}/${P}-cflags.patch
)
src_prepare() {
default

View File

@@ -0,0 +1,13 @@
diff --git a/configure.ac b/configure.ac
index e4614a1..5908e1a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,7 +28,7 @@ OPT_LEVEL=2
if test "$GCC" = "yes"
then
WARNINGS="-Wall -Wdeclaration-after-statement -Wredundant-decls"
+ CFLAGS="$WARNINGS $orig_CFLAGS"
- CFLAGS="-O$OPT_LEVEL -g $WARNINGS $orig_CFLAGS"
fi
PKG_CHECK_MODULES(SDL, [sdl2 >= 2.0.7])

View File

@@ -0,0 +1,11 @@
--- a/configure.ac 2024-10-22 14:32:01.009784223 -0400
+++ b/configure.ac 2024-10-22 14:38:40.706790279 -0400
@@ -28,7 +28,7 @@
if test "$GCC" = "yes"
then
WARNINGS="-Wall -Wdeclaration-after-statement -Wredundant-decls"
- CFLAGS="-O$OPT_LEVEL -g $WARNINGS $orig_CFLAGS"
+ CFLAGS="$WARNINGS $orig_CFLAGS"
fi
PKG_CHECK_MODULES(SDL, [sdl2 >= 2.0.7])