[COMMON] lib: libdss: Modify build script using Makefile variable
authorYoungwan Kim <y103.kim@samsung.com>
Tue, 31 Jul 2018 05:29:10 +0000 (14:29 +0900)
committerJaehyoung Choi <jkkkkk.choi@samsung.com>
Tue, 31 Jul 2018 07:29:00 +0000 (16:29 +0900)
Change-Id: I51114809b01cce728d26368787ecdd5a08389371
Signed-off-by: Youngwan Kim <y103.kim@samsung.com>
lib/libdss-build.sh

index 8ca38384610422bb1af7b172bb3d696013e109cc..9f67425eeb2cc5cbeec11a6458c7a41c8617709d 100755 (executable)
@@ -1,4 +1,4 @@
-clang \
+${CC} \
   --target=aarch64-linux-gnu \
   -Ilib/libdss-include \
   -Iinclude \
@@ -27,4 +27,4 @@ clang \
   -fno-stack-check \
   -g lib/libdss.c -o lib/libdss.o
 
-aarch64-linux-android-ar -rc libdss.a lib/libdss.o
+${CROSS_COMPILE}ar -rc libdss.a lib/libdss.o