Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 1 | # Copyright (C) 2021 Khem Raj <raj.khem@gmail.com> |
| 2 | # Released under the MIT license (see COPYING.MIT for the terms) |
| 3 | |
| 4 | SUMMARY = "libleak detects memory leak by hooking memory functions (e.g. malloc) by LD_PRELOAD" |
| 5 | HOMEPAGE = "https://github.com/WuBingzheng/libleak" |
| 6 | LICENSE = "GPL-2.0" |
| 7 | LIC_FILES_CHKSUM = "file://README.md;beginline=18;endline=21;md5=de4f705f12cdedbe452b2c3524572b03" |
| 8 | |
| 9 | DEPENDS += "libbacktrace" |
| 10 | |
| 11 | SRC_URI = "gitsm://github.com/WuBingzheng/libleak;protocol=https \ |
| 12 | file://0001-respect-environment-variables.patch \ |
| 13 | " |
| 14 | |
| 15 | PV = "1.0+git${SRCPV}" |
| 16 | SRCREV = "ea2bb608ae25701692269a37d39d77e966b887ac" |
| 17 | |
| 18 | S = "${WORKDIR}/git" |
| 19 | |
| 20 | do_configure () { |
| 21 | : |
| 22 | } |
| 23 | |
| 24 | do_compile () { |
| 25 | oe_runmake |
| 26 | } |
| 27 | |
| 28 | do_install () { |
| 29 | install -Dm 0755 ${B}/libleak.so ${D}${libdir}/libleak.so |
| 30 | } |
| 31 | |
| 32 | FILES_SOLIBSDEV = "" |
| 33 | |
| 34 | FILES_${PN} += "${libdir}/libleak.so" |
| 35 | |
| 36 | # libunwind does not support RISCV yet |
| 37 | COMPATIBLE_HOST_riscv64 = "null" |
| 38 | COMPATIBLE_HOST_riscv32 = "null" |