Adjust a couple source checks
This commit is contained in:
parent
9c929abdcf
commit
6d9a329a8a
|
@ -21,8 +21,8 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tested=false
|
tested=false
|
||||||
for suffix in so; do
|
for suffix in .so -*.dll; do
|
||||||
so=.libs/libharfbuzz.$suffix
|
so=`echo .libs/libharfbuzz$suffix`
|
||||||
if test -f "$so"; then
|
if test -f "$so"; then
|
||||||
echo "Checking that we are not exposing internal symbols"
|
echo "Checking that we are not exposing internal symbols"
|
||||||
if nm $so | grep ' [TW] ' | $cplusplusfilt | grep -v ' T _fini\>\| T _init\>\| T hb_'; then
|
if nm $so | grep ' [TW] ' | $cplusplusfilt | grep -v ' T _fini\>\| T _init\>\| T hb_'; then
|
||||||
|
|
|
@ -14,8 +14,14 @@ else
|
||||||
exit 77
|
exit 77
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
OBJS=.libs/*.o
|
||||||
|
if test "x`echo $OBJS`" = "x$OBJS" 2>/dev/null >/dev/null; then
|
||||||
|
echo "check-static-inits.sh: object files not found; skipping test"
|
||||||
|
exit 77
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Checking that no object file has static initializers"
|
echo "Checking that no object file has static initializers"
|
||||||
for obj in .libs/*.o; do
|
for obj in $OBJS; do
|
||||||
if objdump -t "$obj" | grep '[.]ctors'; then
|
if objdump -t "$obj" | grep '[.]ctors'; then
|
||||||
echo "Ouch, $obj has static initializers"
|
echo "Ouch, $obj has static initializers"
|
||||||
stat=1
|
stat=1
|
||||||
|
@ -23,7 +29,7 @@ for obj in .libs/*.o; do
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Checking that no object file has lazy static C++ constructors/destructors"
|
echo "Checking that no object file has lazy static C++ constructors/destructors"
|
||||||
for obj in .libs/*.o; do
|
for obj in $OBJS; do
|
||||||
if objdump -t "$obj" | grep '__c'; then
|
if objdump -t "$obj" | grep '__c'; then
|
||||||
echo "Ouch, $obj has lazy static C++ constructors/destructors"
|
echo "Ouch, $obj has lazy static C++ constructors/destructors"
|
||||||
stat=1
|
stat=1
|
||||||
|
|
Loading…
Reference in New Issue