From: Wook Song Date: Wed, 4 Sep 2019 15:06:42 +0000 (+0900) Subject: [API] Define SO_EXT that represents filename extension for shared object X-Git-Tag: accepted/tizen/unified/20191211.022200~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60a2e405bdd466dcc839c90a4075a5a42c6302fe;p=platform%2Fupstream%2FSSAT.git [API] Define SO_EXT that represents filename extension for shared object A filename extension of a dynamic loadable library could differ between system platforms such as Linux and macOS. In order to consider this issue, this patch defines an environment variable, SO_EXT, which represents a filename extension for a shared object according to the system platform. Signed-off-by: Wook Song --- diff --git a/ssat-api.sh b/ssat-api.sh index 6734f2e..fa138c1 100644 --- a/ssat-api.sh +++ b/ssat-api.sh @@ -52,8 +52,10 @@ ResultLog="" KernelName=$(uname -s) if [[ "${KernelName}" == "Darwin" ]]; then StatCmd_GetSize="stat -f %z" + SO_EXT="dylib" else StatCmd_GetSize="stat --printf=%s" + SO_EXT="so" fi ## @fn writef()