mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 08:03:16 -04:00
Bugfixes: fixed -Ox and -g flags, fixed tests
Closes: https://bugs.gentoo.org/887303 Closes: https://bugs.gentoo.org/887301 Closes: https://bugs.gentoo.org/859742 Signed-off-by: Denis Reva <denis7774@gmail.com>
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 3e9aa23..252bf2c 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -84,15 +84,15 @@ DEBUG_FLAGS = -g
|
||||
RELEASE_FLAGS =
|
||||
COVERAGE_FLAGS = -g
|
||||
|
||||
-KEEP_SYMBOLS ?= 0
|
||||
-ifneq ($(KEEP_SYMBOLS),0)
|
||||
-RELEASE_FLAGS += -g
|
||||
-endif
|
||||
+#KEEP_SYMBOLS ?= 0
|
||||
+#ifneq ($(KEEP_SYMBOLS),0)
|
||||
+#RELEASE_FLAGS += -g
|
||||
+#endif
|
||||
|
||||
DEBUG_LDFLAGS = $(FULL_LDFLAGS) $(DEBUG_FLAGS)
|
||||
RELEASE_LDFLAGS = $(FULL_LDFLAGS) $(RELEASE_FLAGS)
|
||||
DEBUG_CFLAGS = $(FULL_CFLAGS) $(DEBUG_FLAGS) -DDEBUG
|
||||
-RELEASE_CFLAGS = $(FULL_CFLAGS) $(RELEASE_FLAGS) -O2
|
||||
+RELEASE_CFLAGS = $(FULL_CFLAGS) $(RELEASE_FLAGS)
|
||||
COVERAGE_CFLAGS = $(FULL_CFLAGS) $(COVERAGE_FLAGS) --coverage
|
||||
|
||||
#
|
||||
@@ -190,9 +190,9 @@ $(DEBUG_LIB): $(DEBUG_OBJS)
|
||||
|
||||
$(RELEASE_LIB): $(RELEASE_OBJS)
|
||||
$(LD) $(RELEASE_OBJS) $(RELEASE_LDFLAGS) -o $@
|
||||
-ifeq ($(KEEP_SYMBOLS),0)
|
||||
- $(STRIP) $@
|
||||
-endif
|
||||
+#ifeq ($(KEEP_SYMBOLS),0)
|
||||
+# $(STRIP) $@
|
||||
+#endif
|
||||
|
||||
$(DEBUG_LINK): $(DEBUG_LIB)
|
||||
ln -sf $(LIB) $@
|
||||
@@ -11,7 +11,7 @@ else
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Library of glib utilities"
|
||||
DESCRIPTION="Library of glib utilities from sailfishos project"
|
||||
HOMEPAGE="https://github.com/sailfishos/libglibutil"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
@@ -19,11 +19,18 @@ SLOT="0"
|
||||
DEPEND="dev-libs/glib"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
PATCHES=(
|
||||
"${FILESDIR}/libglibutil-1.0.67-respect-env.patch"
|
||||
)
|
||||
|
||||
src_compile() {
|
||||
emake KEEP_SYMBOLS=1 LIBDIR="/usr/$(get_libdir)"
|
||||
emake LIBDIR="/usr/$(get_libdir)"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" install-dev
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake test
|
||||
}
|
||||
Reference in New Issue
Block a user