egl: Use correct shared libraries suffix on macOS.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
Vinson Lee
2018-10-03 14:56:26 -07:00
parent b18f8e63ef
commit 4ece6aa552

View File

@@ -1,7 +1,12 @@
#!/bin/sh
set -eu
LIB=${1-.libs/libEGL.so}
if [ "$(uname)" = "Darwin" ]
then
LIB=${1-.libs/libEGL.dylib}
else
LIB=${1-.libs/libEGL.so}
fi
if ! [ -f "$LIB" ]
then