mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-20 00:48:23 +00:00
add patch to respect CFLAGS with USE=debug Closes: https://bugs.gentoo.org/889464 Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net> Closes: https://github.com/gentoo/gentoo/pull/30369 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
22 lines
797 B
Diff
22 lines
797 B
Diff
From c4eff03fb11d7085035892a688ed5d29e2faefe9 Mon Sep 17 00:00:00 2001
|
|
From: Bernd Waibel <waebbl-gentoo@posteo.net>
|
|
Date: Mon, 27 Mar 2023 19:44:28 +0200
|
|
Subject: [PATCH] respect user CFLAGS
|
|
|
|
Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -42,8 +42,8 @@ AC_ARG_ENABLE(
|
|
[
|
|
if test "x$enableval" != "xno"; then
|
|
build_debug=yes
|
|
- CFLAGS="-O0 -DDEBUG -g -Wall -Wextra -Wno-deprecated-declarations -Wno-sign-compare"
|
|
- CXXFLAGS="-O0 -DDEBUG -g -Wall -Wextra -Wno-deprecated-declarations -Wno-sign-compare"
|
|
+ CFLAGS="$CFLAGS -DDEBUG -g -Wall -Wextra -Wno-deprecated-declarations -Wno-sign-compare"
|
|
+ CXXFLAGS="$CFLAGS -DDEBUG -g -Wall -Wextra -Wno-deprecated-declarations -Wno-sign-compare"
|
|
fi
|
|
])
|
|
|
|
--
|
|
2.40.0
|
|
|