Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 1 | require libcap-ng.inc |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 2 | |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 3 | inherit lib_package autotools |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 4 | |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 5 | EXTRA_OECONF += "--without-python --without-python3" |
Brad Bishop | 64c979e | 2019-11-04 13:55:29 -0500 | [diff] [blame] | 6 | LDFLAGS_append_class-native = " -pthread" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 7 | |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 8 | BBCLASSEXTEND = "native nativesdk" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 9 | |
| 10 | do_install_append() { |
| 11 | # Moving libcap-ng to base_libdir |
| 12 | if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then |
| 13 | mkdir -p ${D}/${base_libdir}/ |
| 14 | mv -f ${D}${libdir}/libcap-ng.so.* ${D}${base_libdir}/ |
| 15 | relpath=${@os.path.relpath("${base_libdir}", "${libdir}")} |
| 16 | ln -sf ${relpath}/libcap-ng.so.0.0.0 ${D}${libdir}/libcap-ng.so |
| 17 | fi |
| 18 | } |