sysota: force external linking with clang
Compare changes
- Pavel Zhukov authored
When sysota is built with toolchain-clang broken dynamicaly linked binary file is produced if shared linking (GO_DYNLINK) is disabled. This can be fixed with specifying external linker for clang toolchain (by default Go swutched to internal linker on 64bit arches if -pie has been specified since version 1.15 [1] ). Limiting this change to clang only to be safe. Fixes: Subprocess output:x86_64-oniro-linux-llvm-strip: error: SHT_STRTAB string table section [index 7] is non-null terminated [1] https://go.dev/doc/go1.15#linker Fixes: #624 Signed-off-by:
Pavel Zhukov <pavel.zhukov@huawei.com>