Statistics
| Branch: | Revision:

root / src / utils / opp_shlib_postprocess @ cbd2c699

History | View | Annotate | Download (600 Bytes)

1 01873262 Georg Kunz
#!/bin/sh
2
3
usage ()
4
{
5
  echo "`basename $0`: post-process a shared library"
6
  echo "Usage: `basename $0` FILENAME"
7
}
8
9
# assert that we have one argument on the command line
10
if [ $# != 1 ]; then
11
  usage
12
  exit 1
13
fi
14
15
# set the context for the library on Security Enhanced Linux
16
if chcon --version >/dev/null 2>/dev/null ; then
17
  echo "chcon -t textrel_shlib_t $1"
18
  chcon -t textrel_shlib_t $1
19
fi
20
21
# the install name must be absolute on Mac OS X
22
if [ "`uname`" = "Darwin" ];  then
23
  libname=`basename $1`
24
  echo "install_name_tool -id `abspath $1` $1"
25
  install_name_tool -id `abspath $1` $1
26
fi
27
28
true