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" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 6 | LICENSE = "GPL-2.0-only" |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 7 | LIC_FILES_CHKSUM = "file://README.md;beginline=18;endline=21;md5=de4f705f12cdedbe452b2c3524572b03" |
| 8 | |
| 9 | DEPENDS += "libbacktrace" |
| 10 | |
Patrick Williams | b542dec | 2023-06-09 01:26:37 -0500 | [diff] [blame] | 11 | PE = "1" |
| 12 | SRCREV = "1c56b0a2ba643db976f589ec04b246e693b6c0ce" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 13 | SRC_URI = "gitsm://github.com/WuBingzheng/libleak;protocol=https;branch=master \ |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 14 | file://0001-respect-environment-variables.patch \ |
| 15 | " |
| 16 | |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 17 | S = "${WORKDIR}/git" |
| 18 | |
| 19 | do_configure () { |
| 20 | : |
| 21 | } |
| 22 | |
| 23 | do_compile () { |
| 24 | oe_runmake |
| 25 | } |
| 26 | |
| 27 | do_install () { |
| 28 | install -Dm 0755 ${B}/libleak.so ${D}${libdir}/libleak.so |
| 29 | } |
| 30 | |
| 31 | FILES_SOLIBSDEV = "" |
| 32 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 33 | FILES:${PN} += "${libdir}/libleak.so" |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 34 | |
| 35 | # libunwind does not support RISCV yet |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 36 | COMPATIBLE_HOST:riscv64 = "null" |
| 37 | COMPATIBLE_HOST:riscv32 = "null" |