Adjust a couple source checks

This commit is contained in:
Behdad Esfahbod 2012-08-08 14:48:41 -04:00
parent 9c929abdcf
commit 6d9a329a8a
2 changed files with 10 additions and 4 deletions

View File

@ -21,8 +21,8 @@ else
fi
tested=false
for suffix in so; do
so=.libs/libharfbuzz.$suffix
for suffix in .so -*.dll; do
so=`echo .libs/libharfbuzz$suffix`
if test -f "$so"; then
echo "Checking that we are not exposing internal symbols"
if nm $so | grep ' [TW] ' | $cplusplusfilt | grep -v ' T _fini\>\| T _init\>\| T hb_'; then

View File

@ -14,8 +14,14 @@ else
exit 77
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"
for obj in .libs/*.o; do
for obj in $OBJS; do
if objdump -t "$obj" | grep '[.]ctors'; then
echo "Ouch, $obj has static initializers"
stat=1
@ -23,7 +29,7 @@ for obj in .libs/*.o; do
done
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
echo "Ouch, $obj has lazy static C++ constructors/destructors"
stat=1