From: Vinson Lee Date: Wed, 15 Nov 2017 01:16:32 +0000 (-0800) Subject: mapi: Use correct shared libraries suffix on macOS. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cd58b98b03f1c7c044b7a39172d6b258c880ff3c;p=mesa.git mapi: Use correct shared libraries suffix on macOS. Signed-off-by: Vinson Lee Reviewed-by: Dylan Baker Reviewed-by: Eric Engestrom --- diff --git a/src/mapi/es1api/ABI-check b/src/mapi/es1api/ABI-check index bd9d0288d60..0a867343c79 100755 --- a/src/mapi/es1api/ABI-check +++ b/src/mapi/es1api/ABI-check @@ -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 diff --git a/src/mapi/es2api/ABI-check b/src/mapi/es2api/ABI-check index 179bea132e3..716e6679a49 100755 --- a/src/mapi/es2api/ABI-check +++ b/src/mapi/es2api/ABI-check @@ -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