6 test -z "$srcdir" && srcdir=.
7 test -z "$libs" && libs=.libs
11 if which objdump 2>/dev/null >/dev/null; then
14 echo "check-static-inits.sh: 'objdump' not found; skipping test"
19 if test "x`echo $OBJS`" = "x$OBJS" 2>/dev/null >/dev/null; then
20 echo "check-static-inits.sh: object files not found; skipping test"
24 echo "Checking that no object file has static initializers"
26 if objdump -t "$obj" | grep '[.][cd]tors' | grep -v '\<00*\>'; then
27 echo "Ouch, $obj has static initializers/finalizers"
32 echo "Checking that no object file has lazy static C++ constructors/destructors or other such stuff"
34 if objdump -t "$obj" | grep '__cxa_'; then
35 echo "Ouch, $obj has lazy static C++ constructors/destructors or other such stuff"