summaryrefslogtreecommitdiff
path: root/package/valgrind
diff options
context:
space:
mode:
Diffstat (limited to 'package/valgrind')
-rw-r--r--package/valgrind/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/package/valgrind/Makefile b/package/valgrind/Makefile
index 6e3f3b4d3..10e7b35fc 100644
--- a/package/valgrind/Makefile
+++ b/package/valgrind/Makefile
@@ -4,9 +4,9 @@
include $(ADK_TOPDIR)/rules.mk
PKG_NAME:= valgrind
-PKG_VERSION:= 3.13.0
+PKG_VERSION:= 3.22.0
PKG_RELEASE:= 1
-PKG_HASH:= d76680ef03f00cd5e970bbdcd4e57fb1f6df7d2e2c071635ef2be74790190c3b
+PKG_HASH:= c811db5add2c5f729944caf47c4e7a65dcaabb9461e472b578765dd7bf6d2d4c
PKG_DESCR:= memory management debugging tool
PKG_SECTION:= app/debug
PKG_URL:= http://valgrind.org/
@@ -20,7 +20,6 @@ include $(ADK_TOPDIR)/mk/package.mk
$(eval $(call PKG_template,VALGRIND,valgrind,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-AUTOTOOL_STYLE:= autoreconf
ifeq ($(ADK_TARGET_LIB_MUSL),y)
TARGET_CPPFLAGS+= -D__MUSL__
endif
@@ -28,12 +27,22 @@ CONFIGURE_ENV+= ac_cv_file__proc_self_fd=yes \
ac_cv_file__proc_self_exe=yes \
ac_cv_file__proc_self_maps=yes
+ifeq ($(ADK_TARGET_ARCH_ARM),y)
+CONFIGURE_ARGS+= --host=$(patsubst arm-%,armv7-%,$(GNU_TARGET_NAME))
+endif
+
valgrind-install:
$(INSTALL_DIR) $(IDIR_VALGRIND)/usr/bin
$(INSTALL_DIR) $(IDIR_VALGRIND)/usr/lib/valgrind
+ $(INSTALL_DIR) $(IDIR_VALGRIND)/usr/libexec/valgrind
$(INSTALL_BIN) $(WRKINST)/usr/bin/valgrind $(IDIR_VALGRIND)/usr/bin/
+ $(INSTALL_BIN) $(WRKBUILD)/memcheck/memcheck-*-linux \
+ $(IDIR_VALGRIND)/usr/libexec/valgrind
+ $(CP) $(WRKINST)/usr/libexec/valgrind/default.supp \
+ $(IDIR_VALGRIND)/usr/libexec/valgrind
+ $(CP) $(WRKINST)/usr/libexec/valgrind/*.so \
+ $(IDIR_VALGRIND)/usr/libexec/valgrind
$(CP) $(WRKINST)/usr/lib/valgrind/* \
$(IDIR_VALGRIND)/usr/lib/valgrind
- touch $(IDIR_VALGRIND)/usr/lib/valgrind/default.supp
include ${ADK_TOPDIR}/mk/pkg-bottom.mk