From: Mateusz Moscicki Date: Tue, 25 Feb 2025 11:11:05 +0000 (+0100) Subject: Add dynamic loader cache generation X-Git-Tag: accepted/tizen/unified/x/20250312.134152^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc6daf10a7e7eef12e77a2922a15a650ddade8c1;p=profile%2Fcommon%2Fmeta.git Add dynamic loader cache generation This patch adds generation of additional cacahe files to be use by glibc when loading libraries Change-Id: I7b8decb8782406fda3692ffcf99719542f4f2d04 --- diff --git a/scripts/iot-hal-backend.post b/scripts/iot-hal-backend.post index 27c26d0..a79809d 100644 --- a/scripts/iot-hal-backend.post +++ b/scripts/iot-hal-backend.post @@ -130,3 +130,11 @@ build_time=$(/bin/date -u --date @$build_ts +%H:%M:%S) /etc/tizen-build.conf /etc/make_info_file.sh hal + +#Generate hal ld.so.cache file +/bin/cat < /tmp/dlconf.txt +/hal/lib +/hal/lib64 +EOF + +/usr/sbin/ldconfig -I -C /hal/etc/ld.so.cache -f /tmp/dlconf.txt