From f5ad8f59d2570aadc2d12077ed389f539775db14 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 20 Aug 2012 11:35:26 +0200 Subject: [PATCH] Update linker cache after each package build and toolchain build. --- lfs/Config | 2 ++ lfs/cleanup-toolchain | 3 +++ 2 files changed, 5 insertions(+) diff --git a/lfs/Config b/lfs/Config index 2bc0754734..7360ac675e 100644 --- a/lfs/Config +++ b/lfs/Config @@ -96,6 +96,8 @@ endif # ifeq "$(ROOT)" "" define POSTBUILD + @echo "Updating linker cache..." + @type -p ldconfig >/dev/null && ldconfig || : @echo "Install done; saving file list to $(TARGET) ..." @$(FIND_FILES) > $(DIR_SRC)/lsalrnew @diff $(DIR_SRC)/lsalr $(DIR_SRC)/lsalrnew | grep '^> ' | sed 's/^> //' > $(TARGET)_diff diff --git a/lfs/cleanup-toolchain b/lfs/cleanup-toolchain index 5c9fd0d5b3..0b3252f9f4 100644 --- a/lfs/cleanup-toolchain +++ b/lfs/cleanup-toolchain @@ -70,6 +70,9 @@ ifeq "$(PASS)" "2" # Fix ownership of the toolchain. chown -R root:root /tools/ + + # Update/create linker cache. + /tools/sbin/ldconfig endif ifeq "$(PASS)" "3" -- 2.39.2