File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- DIR=` dirname " $0 " `
3
- DIR=` eval " cd \" $DIR \" && pwd" `
4
- SYSDIR=" $DIR /../sysroot"
5
- SYSDIR=` eval " cd \" $SYSDIR \" && pwd" `
6
2
7
- export LD_LIBRARY_PATH=" $LD_LIBRARY_PATH :$SYSDIR /lib:$SYSDIR /lib/arm-linux-gnueabi:$SYSDIR /usr/lib:$SYSDIR /usr/lib/arm-linux-gnueabi:$SYSDIR /usr/lib/arm-linux-gnueabi/gconv"
8
- exec " $SYSDIR /lib/ld-linux.so.3" " $DIR /$0 .real" " $@ "
3
+ ROOT=" $( CDPATH= cd -- " $( dirname -- " $0 " ) " && pwd) /.."
4
+ NAME=" $( basename " $0 " ) "
5
+
6
+ LD_LIBRARY_PATH=" $LD_LIBRARY_PATH :$ROOT /sysroot/lib"
7
+ LD_LIBRARY_PATH=" $LD_LIBRARY_PATH :$ROOT /sysroot/lib/arm-linux-gnueabi"
8
+ LD_LIBRARY_PATH=" $LD_LIBRARY_PATH :$ROOT /sysroot/usr/lib"
9
+ LD_LIBRARY_PATH=" $LD_LIBRARY_PATH :$ROOT /sysroot/usr/lib/arm-linux-gnueabi"
10
+ LD_LIBRARY_PATH=" $LD_LIBRARY_PATH :$ROOT /sysroot/usr/lib/arm-linux-gnueabi/gconv"
11
+ export LD_LIBRARY_PATH
12
+ exec " $ROOT /sysroot/lib/ld-linux.so.3" --inhibit-cache " $ROOT /bin/$NAME .real" " $@ "
You can’t perform that action at this time.
0 commit comments