Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "A standalone native ldconfig build" |
| 2 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 3 | LICENSE = "GPL-2.0-or-later" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | |
| 5 | LIC_FILES_CHKSUM = "file://${S}/ldconfig.c;endline=17;md5=1d15f20937c055cb5de2329a4c054399" |
| 6 | |
| 7 | SRC_URI = "file://ldconfig-native-2.12.1.tar.bz2 \ |
| 8 | file://ldconfig.patch \ |
| 9 | file://ldconfig_aux-cache_path_fix.patch \ |
| 10 | file://32and64bit.patch \ |
| 11 | file://endian-ness_handling.patch \ |
| 12 | file://flag_fix.patch \ |
| 13 | file://endianess-header.patch \ |
| 14 | file://ldconfig-default-to-all-multilib-dirs.patch \ |
| 15 | file://endian-ness_handling_fix.patch \ |
| 16 | file://add-64-bit-flag-for-ELF64-entries.patch \ |
Andrew Geissler | 09209ee | 2020-12-13 08:44:15 -0600 | [diff] [blame] | 17 | file://no-aux-cache.patch \ |
Andrew Geissler | 5f35090 | 2021-07-23 13:09:54 -0400 | [diff] [blame] | 18 | file://add-riscv-support.patch \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | " |
| 20 | |
| 21 | PR = "r2" |
| 22 | |
| 23 | FILESEXTRAPATHS =. "${FILE_DIRNAME}/${P}:" |
| 24 | |
| 25 | inherit native |
| 26 | |
| 27 | S = "${WORKDIR}/${PN}-${PV}" |
| 28 | |
| 29 | do_compile () { |
| 30 | $CC ldconfig.c -std=gnu99 chroot_canon.c xmalloc.c xstrdup.c cache.c readlib.c -I. dl-cache.c -o ldconfig |
| 31 | } |
| 32 | |
| 33 | do_install () { |
| 34 | install -d ${D}/${bindir}/ |
| 35 | install ldconfig ${D}/${bindir}/ |
| 36 | } |