mapi: Use correct shared libraries suffix on macOS.
authorVinson Lee <vlee@freedesktop.org>
Wed, 15 Nov 2017 01:16:32 +0000 (17:16 -0800)
committerVinson Lee <vlee@freedesktop.org>
Wed, 15 Nov 2017 23:26:46 +0000 (15:26 -0800)
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/mapi/es1api/ABI-check
src/mapi/es2api/ABI-check

index bd9d0288d60dc7323f4665af954118c7bc875262..0a867343c79a6b02fbedc442184ca7ed54336ed7 100755 (executable)
@@ -9,7 +9,12 @@ set -eu
 # or in extensions that are part of the ES 1.1 extension pack.
 # (see http://www.khronos.org/registry/gles/specs/1.1/opengles_spec_1_1_extension_pack.pdf)
 
-LIB=${1-es1api/.libs/libGLESv1_CM.so.1}
+if [ $(uname) == "Darwin" ]
+then
+  LIB=${1-es1api/.libs/libGLESv1_CM.dylib}
+else
+  LIB=${1-es1api/.libs/libGLESv1_CM.so.1}
+fi
 
 if ! [ -f "$LIB" ]
 then
index 179bea132e3ba147c91c820f61413f1f3e5323ed..716e6679a49f2e38c06b8af85603b32a1f74fad2 100755 (executable)
@@ -6,7 +6,12 @@ set -eu
 # GL_EXT_multi_draw_arrays
 # GL_OES_EGL_image
 
-LIB=${1-es2api/.libs/libGLESv2.so.2}
+if [ $(uname) == "Darwin" ]
+then
+  LIB=${1-es2api/.libs/libGLESv2.dylib}
+else
+  LIB=${1-es2api/.libs/libGLESv2.so.2}
+fi
 
 if ! [ -f "$LIB" ]
 then