dev-libs/gbinder: Fixed unnecessary debug flag in makefile

Closes: https://bugs.gentoo.org/887615
Signed-off-by: Denis Reva <denis7774@gmail.com>
This commit is contained in:
Denis Reva
2022-12-21 19:20:24 +05:00
parent d98edfe377
commit 508b842df4
2 changed files with 41 additions and 1 deletions

View File

@@ -0,0 +1,40 @@
diff --git a/Makefile b/Makefile
index e838b7e..4ce2039 100644
--- a/Makefile
+++ b/Makefile
@@ -136,20 +136,20 @@ FULL_CFLAGS = $(BASE_FLAGS) $(CFLAGS) $(DEFINES) $(WARNINGS) $(INCLUDES) \
-MMD -MP $(shell pkg-config --cflags $(PKGS))
FULL_LDFLAGS = $(BASE_FLAGS) $(LDFLAGS) -shared -Wl,-soname,$(LIB_SONAME) \
$(shell pkg-config --libs $(PKGS)) -lpthread
-DEBUG_FLAGS = -g
+DEBUG_FLAGS =
RELEASE_FLAGS =
-COVERAGE_FLAGS = -g
+COVERAGE_FLAGS =
KEEP_SYMBOLS ?= 0
ifneq ($(KEEP_SYMBOLS),0)
-RELEASE_FLAGS += -g
+#RELEASE_FLAGS += -g
endif
DEBUG_LDFLAGS = $(FULL_LDFLAGS) $(DEBUG_LIBS) $(DEBUG_FLAGS)
RELEASE_LDFLAGS = $(FULL_LDFLAGS) $(RELEASE_LIBS) $(RELEASE_FLAGS)
-DEBUG_CFLAGS = $(FULL_CFLAGS) $(DEBUG_FLAGS) -DDEBUG
-RELEASE_CFLAGS = $(FULL_CFLAGS) $(RELEASE_FLAGS) -O2
-COVERAGE_CFLAGS = $(FULL_CFLAGS) $(COVERAGE_FLAGS) --coverage
+DEBUG_CFLAGS = $(FULL_CFLAGS) $(DEBUG_FLAGS)
+RELEASE_CFLAGS = $(FULL_CFLAGS) $(RELEASE_FLAGS)
+COVERAGE_CFLAGS = $(FULL_CFLAGS) $(COVERAGE_FLAGS)
#
# Files
@@ -275,7 +275,7 @@ $(DEBUG_SO): $(DEBUG_OBJS)
$(RELEASE_SO): $(RELEASE_OBJS)
$(LD) $(RELEASE_OBJS) $(RELEASE_LDFLAGS) -o $@
ifeq ($(KEEP_SYMBOLS),0)
- $(STRIP) $@
+# $(STRIP) $@
endif
$(DEBUG_LIB): $(DEBUG_OBJS)

View File

@@ -28,7 +28,7 @@ BDEPEND="virtual/pkgconfig
sys-apps/sed"
PATCHES=(
"${FILESDIR}/gbinder-1.1.30-respect-env.patch"
"${FILESDIR}/gbinder-1.1.30-r3-respect-env.patch"
)
src_prepare() {
default