Add dynamic loader cache generation 34/320234/3
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Tue, 25 Feb 2025 11:11:05 +0000 (12:11 +0100)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Fri, 28 Feb 2025 08:24:53 +0000 (09:24 +0100)
This patch adds generation of additional cacahe files to be use by glibc
when loading libraries

Change-Id: I7b8decb8782406fda3692ffcf99719542f4f2d04

scripts/iot-hal-backend.post

index 27c26d0e771b1a0e667f9b5ea5b7d206a51d08ea..a79809d688d444d1e6bd3358ab64d394e871dc76 100644 (file)
@@ -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 <<EOF > /tmp/dlconf.txt
+/hal/lib
+/hal/lib64
+EOF
+
+/usr/sbin/ldconfig -I -C /hal/etc/ld.so.cache -f /tmp/dlconf.txt