libmpeg2-0.4.1-use-readelf-for-test.patch 869 B

123456789101112131415161718192021222324252627
  1. --- test/globals.orig 2006-04-29 19:19:59.000000000 +0200
  2. +++ test/globals 2006-04-29 19:24:35.000000000 +0200
  3. @@ -14,8 +14,9 @@
  4. error=0
  5. -bad_globals=`nm -g --defined-only $builddir/../libmpeg2/*.o |\
  6. - awk '{if ($3) print $3}' | grep -v '^_\?mpeg2_'`
  7. +bad_globals=`readelf -s $builddir/../libmpeg2/*.o |\
  8. + awk '$5=="GLOBAL" && $6!="HIDDEN" && $7!="UND" {print $8}' |\
  9. + grep -v '^_\?mpeg2_'`
  10. if test x"$bad_globals" != x""; then
  11. echo BAD GLOBAL SYMBOLS:
  12. @@ -23,8 +24,9 @@
  13. error=1
  14. fi
  15. -bad_globals=`nm -g --defined-only $builddir/../libmpeg2/convert/*.o |\
  16. - awk '{if ($3) print $3}' | grep -v '^_\?mpeg2convert_'`
  17. +bad_globals=`readelf -s $builddir/../libmpeg2/convert/*.o |\
  18. + awk '$5=="GLOBAL" && $6!="HIDDEN" && $7!="UND" {print $8}' |\
  19. + grep -v '^_\?mpeg2convert_'`
  20. if test x"$bad_globals" != x""; then
  21. echo BAD GLOBAL SYMBOLS: