summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOliver Tappe2007-04-26 20:42:52 +0200
committerOliver Tappe2007-04-26 20:42:52 +0200
commit453d0907917519dd7d1e239327dc7c64b873f074 (patch)
tree2b4166b1ee5763750f6cad69db8cd28617b7cc58 /bin
parent* cleaned up handling of busybox binary, we now copy the binary that corresponds (diff)
downloadcore-453d0907917519dd7d1e239327dc7c64b873f074.tar.gz
core-453d0907917519dd7d1e239327dc7c64b873f074.tar.xz
core-453d0907917519dd7d1e239327dc7c64b873f074.zip
* added workaround for /lib32 and /usr/lib32 not being referenced in
ld.so.conf on debian, although they are required and used. I don't understand why they do it this way... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@931 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'bin')
-rwxr-xr-xbin/slxldd18
1 files changed, 14 insertions, 4 deletions
diff --git a/bin/slxldd b/bin/slxldd
index c84ca513..38b9508f 100755
--- a/bin/slxldd
+++ b/bin/slxldd
@@ -20,9 +20,9 @@ slxldd
This script reimplements ldd in a way that should work for all
binary formats supported by the binutils installed on the host system.
- An example: if you have a folder containing an ia64 system, you can
- invoke this script on a ia32-host in order to determine all the libraries
- required by a binary of the ia64 target system.
+ An example: if you have a folder containing an x86_64 system, you can
+ invoke this script on a x86_32-host in order to determine all the libraries
+ required by a binary of the x86_64 target system.
];
use File::Glob ':globally';
@@ -134,6 +134,16 @@ sub fetchLoaderConfig
if (!grep { m[^$rootPath/usr/lib$] } @libFolders) {
push @libFolders, "$rootPath/usr/lib";
}
+
+ # add lib32-folders for 64-bit Debians, as they do not
+ # refer those in ld.so.conf (which I find strange...)
+ if (-e '/lib32' && !grep { m[^$rootPath/lib32$]} @libFolders) {
+ push @libFolders, "$rootPath/lib32";
+ }
+ if (-e '/usr/lib32'
+ && !grep { m[^$rootPath/usr/lib32$] } @libFolders) {
+ push @libFolders, "$rootPath/usr/lib32";
+ }
}
sub addLib
@@ -169,7 +179,7 @@ sub addLib
}
}
if (!defined $libPath) {
- die _tr("*** unable to find lib %s! ***\n", $lib);
+ die _tr("unable to find lib %s!\n", $lib);
}
print "$libPath\n";
$libInfo{$lib} = $libPath;