]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Update linker cache after each package build and toolchain build.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 20 Aug 2012 09:35:26 +0000 (11:35 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 20 Aug 2012 09:35:26 +0000 (11:35 +0200)
lfs/Config
lfs/cleanup-toolchain

index 2bc07547340197df985c595905db7897a1ae192c..7360ac675ecee54f2784cfc72578cef194477c60 100644 (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
index 5c9fd0d5b3598a6a2c207d04b7e792a3091a915b..0b3252f9f4f23185f2696d32e88d1ad543f7f718 100644 (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"