Update linker cache after each package build and toolchain build.

This commit is contained in:
Michael Tremer
2012-08-20 11:35:26 +02:00
parent 03395fbd07
commit f5ad8f59d2
2 changed files with 5 additions and 0 deletions

View File

@@ -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

View File

@@ -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"