mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-14 05:30:53 +00:00
710e41c3e8
Make sure that all the required symbols exist in generated plugins. If not, the strip command may have removed them... svn-id: r55144
16 lines
262 B
Bash
Executable File
16 lines
262 B
Bash
Executable File
#! /bin/sh
|
|
case "$0" in
|
|
*/*) dir=`dirname "$0"`/;;
|
|
*) dir="";;
|
|
esac
|
|
exec < "$dir"plugin.syms
|
|
while read sym; do
|
|
if sh-elf-nm "$1" | grep >/dev/null " $sym"'$'; then
|
|
:
|
|
else
|
|
echo >&2 "ERROR: Symbol $sym missing from $1"
|
|
exit 1
|
|
fi
|
|
done
|
|
exit 0
|