1# Copyright (C) 2022 Huawei Technologies Co., Ltd. 2# Licensed under the Mulan PSL v2. 3# You can use this software according to the terms and conditions of the Mulan 4# PSL v2. 5# You may obtain a copy of Mulan PSL v2 at: 6# http://license.coscl.org.cn/MulanPSL2 7# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY 8# KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO 9# NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. 10# See the Mulan PSL v2 for more details. 11 12set(CMAKE_SYSTEM_NAME Linux) 13set(CMAKE_SYSTEM_PROCESSOR aarch64) 14 15set(CMAKE_C_COMPILER aarch64-linux-gnu-gcc CACHE PATH "GCC 64 compiler") 16set(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++ CACHE PATH "GCC CXX64 compiler") 17set(CMAKE_LINKER aarch64-linux-gnu-ld CACHE PATH "GCC C64 LD") 18set(CMAKE_READELF aarch64-linux-gnu-readelf CACHE PATH "GCC C64 READELF") 19 20set(CMAKE_SKIP_BUILD_RPATH TRUE CACHE BOOL "" FORCE) 21set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_LINKER> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>") 22