[API] Define SO_EXT that represents filename extension for shared object
authorWook Song <wook16.song@samsung.com>
Wed, 4 Sep 2019 15:06:42 +0000 (00:06 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 5 Sep 2019 07:08:15 +0000 (16:08 +0900)
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 <wook16.song@samsung.com>
ssat-api.sh

index 6734f2e..fa138c1 100644 (file)
@@ -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()