clang++ not able to link libraries crtbegin.o

Hi All,

I am new to clang. I have taken meta-clang and ported to my yocto project for aarch64 with below commands. And building nodejs-.4.4.4 using clang++

TOOLCHAIN_pn-nodejs = “clang”
DEPENDS_append_pn-nodejs = " clang-cross-aarch64 "

added below line to nodejs recipe

TOOLCHAIN = “clang”

Compilation is going fine but could see below linking error

aarch64-montavista-linux-gnu-clang++ -mlittle-endian -D__extern_always_inline=inline -no-integrated-as -Wno-error=unused-command-line-argument --sysroot=/home/srinivas/clang-project/emgw-project/broadcom-ns2-emgw-3.10-1.4-project/tmp/sysroots/broadcom-ns2-emgw -I=/usr/include/c++/aarch64-montavista-linux/ -I=/usr/include/c++ -pthread -rdynamic -Wl,-O1 -o /home/srinivas/clang-project/emgw-project/broadcom-ns2-emgw-3.10-1.4-project/tmp/work/aarch64-montavista-linux/nodejs/4.4.3-r0/node-v4.4.3/out/Release/cctest -Wl,–start-group /home/srinivas/clang-project/emgw-project/broadcom-ns2-emgw-3.10-1.4-project/tmp/work/aarch64-montavista-linux/nodejs/4.4.3-r0/node-v4.4.3/out/Release/obj.target/cctest/test/cctest/util.o /home/srinivas/clang-project/emgw-project/broadcom-ns2-emgw-3.10-1.4-project/tmp/work/aarch64-montavista-linux/nodejs/4.4.3-r0/node-v4.4.3/out/Release/obj.target/deps/gtest/libgtest.a /home/srinivas/clang-project/emgw-project/broadcom-ns2-emgw-3.10-1.4-project/tmp/work/aarch64-montavista-linux/nodejs/4.4.3-r0/node-v4.4.3/out/Release/obj.target/deps/v8/tools/gyp/libv8_libplatform.a /home/srinivas/clang-project/emgw-project/broadcom-ns2-emgw-3.10-1.4-project/tmp/work/aarch64-montavista-linux/nodejs/4.4.3-r0/node-v4.4.3/out/Release/obj.target/deps/v8/tools/gyp/libv8_base.a /home/srinivas/clang-project/emgw-project/broadcom-ns2-emgw-3.10-1.4-project/tmp/work/aarch64-montavista-linux/nodejs/4.4.3-r0/node-v4.4.3/out/Release/obj.target/deps/v8/tools/gyp/libv8_libbase.a /home/srinivas/clang-project/emgw-project/broadcom-ns2-emgw-3.10-1.4-project/tmp/work/aarch64-montavista-linux/nodejs/4.4.3-r0/node-v4.4.3/out/Release/obj.target/deps/v8/tools/gyp/libv8_nosnapshot.a -Wl,–end-group -L/home/srinivas/clang-project/emgw-project/broadcom-ns2-emgw-3.10-1.4-project/tmp/sysroots/broadcom-ns2-emgw/usr/lib64 -lssl -lcrypto -ldl -lrt
| /home/srinivas/clang-project/emgw-project/montavista/bin/…/tools/armv8-gnu//bin/aarch64-montavista-linux-gnu-ld: cannot find crtbegin.o: No such file or directory

But my project staging directory contains crtbegin.o

srinivas@srinivas:~/clang-project/emgw-project/broadcom-ns2-emgw-3.10-1.4-project$ find tmp/sysroots/ | grep crtbegin.o
tmp/sysroots/broadcom-ns2-emgw/usr/lib64/gcc/aarch64-montavista-linux/4.7.0/crtbegin.o
tmp/sysroots/broadcom-ns2-emgw/usr/lib64/gcc/aarch64-montavista-linux/4.7.0/ilp32/crtbegin.o

Please help to resolving this issue

Thanks,
Srinivas.