File: layout2.sh

package info (click to toggle)
prelink 0.0.20061027-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,716 kB
  • ctags: 2,061
  • sloc: ansic: 24,381; sh: 11,286; makefile: 169; cpp: 103
file content (21 lines) | stat: -rwxr-xr-x 683 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
. `dirname $0`/functions.sh
rm -f layout2 layout2lib*.so layout2.log
i=1
BINS="layout2"
LIBS=
while [ $i -lt 6 ]; do
  $CXX -shared -fpic -o layout2lib$i.so $srcdir/layoutlib.C
  LIBS="$LIBS layout2lib$i.so"
  i=`expr $i + 1`
done
$CXXLINK -o layout2 $srcdir/layout.C layout2lib*.so
savelibs
echo $PRELINK ${PRELINK_OPTS--vR} ./layout2 > layout2.log
$PRELINK ${PRELINK_OPTS--vR} ./layout2 >> layout2.log 2>&1 || exit 1
grep -q ^`echo $PRELINK | sed 's/ .*$/: /'` layout2.log && exit 2
LD_LIBRARY_PATH=. ./layout2 || exit 3
readelf -a ./layout2 >> layout2.log 2>&1 || exit 4
# So that it is not prelinked again
chmod -x ./layout2
comparelibs >> layout2.log 2>&1 || exit 5