09febe09dc
ldconfig-native was grepped from an old version of glibc, and its output lacks neccessary 64bit flag in entries. Due to this defect, ctypes.util.find_library() python function fails to detect any library due to the old file format that ldconfig-native creates. This fix sets architecture-dependent 64bit flags for 64-bit ELF. Since the host's elf.h may not have definition for new AArch64 machine type, a work-around is added to correctly flag 64-bit ARM libraries. (From OE-Core rev: 0b0e4d7aa64feded0a7bf89264d2367489808a38) Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
35 lines
949 B
BlitzBasic
35 lines
949 B
BlitzBasic
SUMMARY = "A standalone native ldconfig build"
|
|
|
|
LICENSE = "GPLv2+"
|
|
|
|
LIC_FILES_CHKSUM = "file://${S}/ldconfig.c;endline=17;md5=1d15f20937c055cb5de2329a4c054399"
|
|
|
|
SRC_URI = "file://ldconfig-native-2.12.1.tar.bz2 \
|
|
file://ldconfig.patch \
|
|
file://ldconfig_aux-cache_path_fix.patch \
|
|
file://32and64bit.patch \
|
|
file://endian-ness_handling.patch \
|
|
file://flag_fix.patch \
|
|
file://endianess-header.patch \
|
|
file://ldconfig-default-to-all-multilib-dirs.patch \
|
|
file://endian-ness_handling_fix.patch \
|
|
file://add-64-bit-flag-for-ELF64-entries.patch \
|
|
"
|
|
|
|
PR = "r2"
|
|
|
|
FILESEXTRAPATHS =. "${FILE_DIRNAME}/${P}:"
|
|
|
|
inherit native
|
|
|
|
S = "${WORKDIR}/${PN}-${PV}"
|
|
|
|
do_compile () {
|
|
$CC ldconfig.c -std=gnu99 chroot_canon.c xmalloc.c xstrdup.c cache.c readlib.c -I. dl-cache.c -o ldconfig
|
|
}
|
|
|
|
do_install () {
|
|
install -d ${D}/${bindir}/
|
|
install ldconfig ${D}/${bindir}/
|
|
}
|