diff options
author | Clemens Gruber <clemens.gruber@pqgruber.com> | 2016-09-08 16:32:48 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-09-09 10:54:30 +0200 |
commit | e7b482e0532d3373198c21f41d141a4857a11d99 (patch) | |
tree | 042a61e16778ea6c2cddb94a396faa3178c2989e /rules/glibc.make | |
parent | ca050bb48456002c13cb14cc13de6252e5100782 (diff) | |
download | ptxdist-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 'rules/glibc.make')
-rw-r--r-- | rules/glibc.make | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/rules/glibc.make b/rules/glibc.make index ab2c4b63e..c662d3bd1 100644 --- a/rules/glibc.make +++ b/rules/glibc.make @@ -4,6 +4,7 @@ # 2003 by Auerswald GmbH & Co. KG, Schandelah, Germany # 2005-2009 by Marc Kleine-Budde <mkl@pengutronix.de>, Pengutronix e.K., Hildesheim, Germany # (C) 2010 by Michael Olbrich <m.olbrich@pengutronix.de> +# (C) 2016 by Clemens Gruber <clemens.gruber@pqgruber.com> # # See CREDITS for details about who has contributed to this project. # @@ -124,6 +125,18 @@ ifdef PTXCONF_GLIBC_GCONV_ZH @$(call install_copy_toolchain_lib, glibc, gconv/GB18030.so) endif +ifdef PTXCONF_GLIBC_LDCONFIG + @$(call install_copy, glibc, 0, 0, 0755, \ + $(PTXDIST_SYSROOT_TOOLCHAIN)/sbin/ldconfig, /sbin/ldconfig) + @$(call install_alternative, glibc, 0, 0, 0644, /etc/ld.so.conf) + @$(call install_copy, glibc, 0, 0, 0755, /etc/ld.so.conf.d) +endif + +ifdef PTXCONF_GLIBC_LDCONFIG_RC_ONCE + @$(call install_alternative, glibc, 0, 0, 0755, \ + /etc/rc.once.d/ldconfig) +endif + ifdef PTXCONF_GLIBC_I18N_BIN_LOCALE @$(call install_copy_toolchain_usr, glibc, bin/locale) endif |