RDK: Fixed the undefined symbol issues with latest RDK update

PD#SWPL-27481

Problem:
After GCC 4.6 the -Wl,--as-need is by default but not all libraries
are ready in rootfs during multi-core compiling without gold-linker

Solution:
Add new option --Wl,--no-as-need in front of dynamic linked libraries

Verify:
u212

Change-Id: I382e34bf8b014228b3ab38d615a65a38141b1480
Signed-off-by: Terrence Pu <terrence.pu@amlogic.com>
diff --git a/Makefile b/Makefile
index 138852f..4776c0b 100644
--- a/Makefile
+++ b/Makefile
@@ -29,8 +29,8 @@
 
 CFLAGS+=-fPIC -O2 -I$(PROTOC_INC) -I./include -I. -I./src
 CXXFLAGS+=-std=c++14
-SC_LDFLAGS+=-lgrpc++_unsecure -lprotobuf -lboost_system -llog -ldl -lrt -lpthread -lstdc++
-LDFLAGS+=-llog -ldl -lrt -lpthread -lstdc++
+SC_LDFLAGS+=-Wl,--no-as-needed -lgrpc++_unsecure -lprotobuf -lboost_system -llog -ldl -lrt -lpthread -lstdc++ -pthread
+LDFLAGS+= -Wl,--no-as-needed -llog -ldl -lrt -lpthread -lstdc++ -pthread
 
 %.grpc.pb.cc: %.pb.cc
 	#echo "audio_sevice.grpc.pb.cc depends on audio_service.pb.h which is generated by audio_service.pb.cc"