Why did you quote himanshu.mistri's post?
Why do you set
LDFLAGS
etc. and also use a toolchain file? These settings are performed by / should be performed within the toolchain file.LDFLAGS
etc. and also use a toolchain file? These settings are performed by / should be performed within the toolchain file.BUILD_SHARED_LIBS=ON
instead.BUILD_SHARED_LIBS=OFF
.