Line
Link Here
|
0 |
-- tools/buildsharedlib.sh |
0 |
++ tools/buildsharedlib.sh |
Lines 115-127
Link Here
|
115 |
*) |
115 |
*) |
116 |
if [ `$LD -v 2>&1 | grep -c gcc` -gt 0 -a \ |
116 |
if [ `$LD -v 2>&1 | grep -c gcc` -gt 0 -a \ |
117 |
`gcc -Wl,-Bsymbolic 2>&1 | grep -c unrecognized` = 0 ] ; then |
117 |
`gcc -Wl,-Bsymbolic 2>&1 | grep -c unrecognized` = 0 ] ; then |
118 |
$LD -shared -Wl,-Bsymbolic -o $LIBNAME `cat $LINKFILE` `./tools/getlibs.sh autodetect` ; |
118 |
$LD -shared $LDFLAGS -Wl,-soname,$LIBNAME -Wl,-Bsymbolic -o $LIBNAME `cat $LINKFILE` `./tools/getlibs.sh autodetect` ; |
119 |
else |
119 |
else |
120 |
$LD -shared -o $LIBNAME `cat $LINKFILE` `./tools/getlibs.sh autodetect` ; |
120 |
$LD -shared $LDFLAGS -Wl,-soname,$LIBNAME -o $LIBNAME `cat $LINKFILE` `./tools/getlibs.sh autodetect` ; |
121 |
fi |
121 |
fi |
122 |
if [ `which objdump` -a `objdump -p $LIBNAME | grep -c TEXTREL` -gt '0' ] ; then |
122 |
if [ `which objdump` -a `objdump -p $LIBNAME | grep -c TEXTREL` -gt '0' ] ; then |
123 |
echo "Warning: Shared library still contains TEXTREL records." ; |
123 |
echo "Warning: Shared library still contains TEXTREL records." ; |
124 |
fi |
124 |
fi |
125 |
strip $LIBNAME ;; |
125 |
;; |
126 |
esac |
126 |
esac |
127 |
rm -f $LINKFILE |
127 |
rm -f $LINKFILE |