This patch series adds support for generating valid ld.so.cache which match the target architecture, without requiring a cross-compiled version of ldconfig that would run on the host, nor run on the target.
Having a proper ld.so.cache might be needed if e.g: 64-bit executable loader only has /lib64 in its default search path. At some point, we should probably think about how we want to structure the rootfs in OpenWrt/LEDE wrt. 32-bit/64-bit libraries but that set of changes is orthogonal and can be useful on its own. Florian Fainelli (3): base-files: Do not create lib64 symbolic links with external toolchains tools: Add ldconfig-native build: Run ldconfig on the final rootfs include/rootfs.mk | 7 + package/base-files/Makefile | 4 + tools/Makefile | 1 + tools/ldconfig-native/Makefile | 30 ++ tools/ldconfig-native/patches/001-ldconfig.patch | 471 +++++++++++++++++++++ .../patches/002-ldconfig_aux-cache_path_fix.patch | 36 ++ tools/ldconfig-native/patches/003-32and64bit.patch | 331 +++++++++++++++ .../patches/004-endian-ness_handling.patch | 454 ++++++++++++++++++++ tools/ldconfig-native/patches/005-flag_fix.patch | 24 ++ .../patches/006-endianess-header.patch | 113 +++++ ...007-ldconfig-default-to-all-multilib-dirs.patch | 37 ++ .../patches/008-endian-ness_handling_fix.patch | 47 ++ .../009-add-64-bit-flag-for-ELF64-entries.patch | 116 +++++ 13 files changed, 1671 insertions(+) create mode 100644 tools/ldconfig-native/Makefile create mode 100644 tools/ldconfig-native/patches/001-ldconfig.patch create mode 100644 tools/ldconfig-native/patches/002-ldconfig_aux-cache_path_fix.patch create mode 100644 tools/ldconfig-native/patches/003-32and64bit.patch create mode 100644 tools/ldconfig-native/patches/004-endian-ness_handling.patch create mode 100644 tools/ldconfig-native/patches/005-flag_fix.patch create mode 100644 tools/ldconfig-native/patches/006-endianess-header.patch create mode 100644 tools/ldconfig-native/patches/007-ldconfig-default-to-all-multilib-dirs.patch create mode 100644 tools/ldconfig-native/patches/008-endian-ness_handling_fix.patch create mode 100644 tools/ldconfig-native/patches/009-add-64-bit-flag-for-ELF64-entries.patch -- 2.9.3 _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev