mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-20 19:21:46 +00:00
DC: Check plugins for required symbols
Make sure that all the required symbols exist in generated plugins. If not, the strip command may have removed them... svn-id: r55144
This commit is contained in:
parent
f9ebeb330b
commit
710e41c3e8
15
backends/platform/dc/check_plugin_symbols
Executable file
15
backends/platform/dc/check_plugin_symbols
Executable file
@ -0,0 +1,15 @@
|
||||
#! /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
|
@ -14,6 +14,7 @@ plugin_dist : plugins
|
||||
if /usr/bin/test "$$p" -ot "$$t"; then :; else \
|
||||
echo sh-elf-strip -g -o "$$t" "$$p"; \
|
||||
sh-elf-strip -g -o "$$t" "$$p"; \
|
||||
$(srcdir)/backends/platform/dc/check_plugin_symbols "$$t"; \
|
||||
fi;\
|
||||
done
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user