blob: e3e4c01acb03ab712860d1b53739ac9a489f17e4 [file] [log] [blame]
Andrew Geissler32b11992021-03-31 13:37:05 -05001# Copyright (C) 2021 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms)
3
4SUMMARY = "libleak detects memory leak by hooking memory functions (e.g. malloc) by LD_PRELOAD"
5HOMEPAGE = "https://github.com/WuBingzheng/libleak"
Andrew Geissler9aee5002022-03-30 16:27:02 +00006LICENSE = "GPL-2.0-only"
Andrew Geissler32b11992021-03-31 13:37:05 -05007LIC_FILES_CHKSUM = "file://README.md;beginline=18;endline=21;md5=de4f705f12cdedbe452b2c3524572b03"
8
9DEPENDS += "libbacktrace"
10
Patrick Williamsb542dec2023-06-09 01:26:37 -050011PE = "1"
12SRCREV = "1c56b0a2ba643db976f589ec04b246e693b6c0ce"
Andrew Geissler595f6302022-01-24 19:11:47 +000013SRC_URI = "gitsm://github.com/WuBingzheng/libleak;protocol=https;branch=master \
Andrew Geissler32b11992021-03-31 13:37:05 -050014 file://0001-respect-environment-variables.patch \
15 "
16
Andrew Geissler32b11992021-03-31 13:37:05 -050017S = "${WORKDIR}/git"
18
19do_configure () {
20 :
21}
22
23do_compile () {
24 oe_runmake
25}
26
27do_install () {
28 install -Dm 0755 ${B}/libleak.so ${D}${libdir}/libleak.so
29}
30
31FILES_SOLIBSDEV = ""
32
Patrick Williams213cb262021-08-07 19:21:33 -050033FILES:${PN} += "${libdir}/libleak.so"
Andrew Geissler32b11992021-03-31 13:37:05 -050034
35# libunwind does not support RISCV yet
Patrick Williams213cb262021-08-07 19:21:33 -050036COMPATIBLE_HOST:riscv64 = "null"
37COMPATIBLE_HOST:riscv32 = "null"