Commit b4a35bb3 authored by Ghislain MARY's avatar Ghislain MARY

Use realname for toolchain build tools.

parent 3a85db32
......@@ -56,16 +56,16 @@ string(REGEX REPLACE "-gcc$" "" LINPHONE_BUILDER_TOOLCHAIN_PATH ${COMPILER_PATH}
string(REGEX REPLACE "-gcc$" "" LINPHONE_BUILDER_TOOLCHAIN_HOST ${COMPILER_NAME})
foreach(TOOLNAME gcc g++ ld ar ranlib strip nm)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/toolchains/bb10/tool_wrapper.cmake ${CMAKE_CURRENT_BINARY_DIR}/${TOOLNAME})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/toolchains/bb10/tool_wrapper.cmake ${CMAKE_CURRENT_BINARY_DIR}/${LINPHONE_BUILDER_TOOLCHAIN_HOST}-${TOOLNAME})
endforeach(TOOLNAME)
set(LINPHONE_BUILDER_TOOLCHAIN_CC "${CMAKE_CURRENT_BINARY_DIR}/gcc")
set(LINPHONE_BUILDER_TOOLCHAIN_CXX "${CMAKE_CURRENT_BINARY_DIR}/g++")
set(LINPHONE_BUILDER_TOOLCHAIN_LD "${CMAKE_CURRENT_BINARY_DIR}/ld")
set(LINPHONE_BUILDER_TOOLCHAIN_AR "${CMAKE_CURRENT_BINARY_DIR}/ar")
set(LINPHONE_BUILDER_TOOLCHAIN_RANLIB "${CMAKE_CURRENT_BINARY_DIR}/ranlib")
set(LINPHONE_BUILDER_TOOLCHAIN_STRIP "${CMAKE_CURRENT_BINARY_DIR}/strip")
set(LINPHONE_BUILDER_TOOLCHAIN_NM "${CMAKE_CURRENT_BINARY_DIR}/nm")
set(LINPHONE_BUILDER_TOOLCHAIN_CC "${CMAKE_CURRENT_BINARY_DIR}/${LINPHONE_BUILDER_TOOLCHAIN_HOST}-gcc")
set(LINPHONE_BUILDER_TOOLCHAIN_CXX "${CMAKE_CURRENT_BINARY_DIR}/${LINPHONE_BUILDER_TOOLCHAIN_HOST}-g++")
set(LINPHONE_BUILDER_TOOLCHAIN_LD "${CMAKE_CURRENT_BINARY_DIR}/${LINPHONE_BUILDER_TOOLCHAIN_HOST}-ld")
set(LINPHONE_BUILDER_TOOLCHAIN_AR "${CMAKE_CURRENT_BINARY_DIR}/${LINPHONE_BUILDER_TOOLCHAIN_HOST}-ar")
set(LINPHONE_BUILDER_TOOLCHAIN_RANLIB "${CMAKE_CURRENT_BINARY_DIR}/${LINPHONE_BUILDER_TOOLCHAIN_HOST}-ranlib")
set(LINPHONE_BUILDER_TOOLCHAIN_STRIP "${CMAKE_CURRENT_BINARY_DIR}/${LINPHONE_BUILDER_TOOLCHAIN_HOST}-strip")
set(LINPHONE_BUILDER_TOOLCHAIN_NM "${CMAKE_CURRENT_BINARY_DIR}/${LINPHONE_BUILDER_TOOLCHAIN_HOST}-nm")
set(LINPHONE_BUILDER_TOOLCHAIN_CPPFLAGS "-D_REENTRANT -D__QNXNTO__ -Dasm=__asm")
set(LINPHONE_BUILDER_TOOLCHAIN_CFLAGS "-fPIC -fstack-protector-strong")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment