summaryrefslogtreecommitdiff
path: root/scripts/bundle-libraries.sh
Commit message (Collapse)AuthorAgeFilesLines
* build: rework library bundlingJo-Philipp Wich2017-01-101-27/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rework the bundle-libraries.sh implementation to use a more robust approach for executing host binaries through the shipped ELF loader and libraries. The previous approach relied on symlinks pointing to a wrapper script which caused various issues, especially with multicall binaries as the original argv[0] name was not preserved through the ld.so invocation. Another down- side was the fact that the actual binaries got moved into another directory which caused executables to fail looking up resources with paths relative to the executable location. The new library wrapper implements the following improvements: - Instead of symlinks pointing to a common wrapper, each ELF executable is now replaced by a unqiue shell script which retains the original program name getting called - Instead of letting ld.so invoke the ELF executable directly, launch the final ELF binary through a helper program which fixes up the argv[0] argument for the target program - Support sharing a common location for the bundled libraries instead of having one copy in each directory containing wrapped binaries Finally modify the SDK build to wrap the staging_dir and toolchain binaries which allows to use the SDK on systems with a different glibc version. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* treewide: replace jow@openwrt.org with jo@mein.ioJo-Philipp Wich2016-06-071-1/+1
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* scripts/bundle-libraries: fall back to only copying binaries if ldd is ↵Felix Fietkau2014-06-021-21/+20
| | | | | | | | unavailable (e.g. non-linux system) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40967
* scripts: bundle-libraries.sh: support mixing 32bit and 64bit binariesJo-Philipp Wich2013-01-281-6/+7
| | | | SVN-Revision: 35349
* fix library bundling when host libraries reside in /lib/tls/ or similarJo-Philipp Wich2012-09-091-5/+1
| | | | SVN-Revision: 33353
* add a helper script to bundle required libraries for host utilitiesJo-Philipp Wich2012-08-151-0/+114
SVN-Revision: 33195