mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-22 08:52:58 +02:00
Update linker cache after each package build and toolchain build.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user