mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-05-02 06:46:26 -04:00
wayland-egl: Update wayland-egl-symbols-check for darwin
darwin prefixes C symbols with an underscore character Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
This commit is contained in:
parent
75160d3ed3
commit
ab94db3f6a
1 changed files with 9 additions and 1 deletions
|
|
@ -14,7 +14,15 @@ if ! test -n "$NM"; then
|
|||
exit 99
|
||||
fi
|
||||
|
||||
AVAIL_FUNCS="$($NM -D --format=bsd --defined-only $LIB | awk '{print $3}')"
|
||||
# darwin prefixes C symbols with _ and uses a different nm invocation
|
||||
case "$(uname -s)" in
|
||||
Darwin)
|
||||
AVAIL_FUNCS="$($NM -g --defined-only $LIB | awk '{print $3}' | sed 's:^_::')"
|
||||
;;
|
||||
*)
|
||||
AVAIL_FUNCS="$($NM -D --format=bsd --defined-only $LIB | awk '{print $3}')"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Official ABI, taken from the header.
|
||||
REQ_FUNCS="wl_egl_window_resize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue