Ok, valgrind package is ready and compiled, 25M of binaries... next step is changing the script named kodi which will call kodi.bin this way:
Code
valgrind --tool=memcheck --leak-check=yes --log-file="logkodimem" "$LIBDIR/${bin_name}/${bin_name}.bin" $SAVED_ARGS
This is the package.mk, note that if you interrupt build you should delete build dir or autoreconf will not run a second time (hard time figuring this....):
Code
PKG_NAME="valgrind"
PKG_VERSION="3.12.0"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="OpenSource"
PKG_SITE="https://www.valgrind.org/"
PKG_URL="http://www.valgrind.org/downloads/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS_TARGET="toolchain"
PKG_PRIORITY="optional"
PKG_SECTION="others"
PKG_SHORTDESC="Memory leak tool"
PKG_LONGDESC="Memory leak tool. bla bla bla"
PKG_IS_ADDON="no"
PKG_AUTORECONF="yes"
pre_configure_target() {
CFLAGS=`echo $CFLAGS | sed -e "s|-flto||"`
}
Display More