summaryrefslogtreecommitdiffstats
path: root/projectroot
diff options
context:
space:
mode:
authorClemens Gruber <clemens.gruber@pqgruber.com>2016-09-08 16:32:48 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-09-09 10:54:30 +0200
commite7b482e0532d3373198c21f41d141a4857a11d99 (patch)
tree042a61e16778ea6c2cddb94a396faa3178c2989e /projectroot
parentca050bb48456002c13cb14cc13de6252e5100782 (diff)
downloadptxdist-e7b482e0532d3373198c21f41d141a4857a11d99.tar.gz
ptxdist-e7b482e0532d3373198c21f41d141a4857a11d99.tar.xz
glibc: install ldconfig and create ld.so.cache
Add an option to install the ldconfig binary from the toolchain and another one to enable the generation of /etc/ld.so.cache at first boot with a rc-once.d script. Use only the new format, which is supported since glibc 2.2 from the year 2000. Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com> [mol: minor cleanup] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'projectroot')
-rw-r--r--projectroot/etc/ld.so.conf1
-rw-r--r--projectroot/etc/rc.once.d/ldconfig7
2 files changed, 8 insertions, 0 deletions
diff --git a/projectroot/etc/ld.so.conf b/projectroot/etc/ld.so.conf
new file mode 100644
index 000000000..83327c01b
--- /dev/null
+++ b/projectroot/etc/ld.so.conf
@@ -0,0 +1 @@
+include /etc/ld.so.conf.d/*.conf
diff --git a/projectroot/etc/rc.once.d/ldconfig b/projectroot/etc/rc.once.d/ldconfig
new file mode 100644
index 000000000..76220098f
--- /dev/null
+++ b/projectroot/etc/rc.once.d/ldconfig
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
+echo "Creating dynamic linker cache..."
+ldconfig --format=new -X &&
+rm -rf /var/cache/ldconfig