|
|
@ -66,7 +66,6 @@ export CROSS_PREFIX_WITH_PATH=${TOOLCHAIN_PATH}/bin/${CROSS_PREFIX} |
|
|
|
# The FAM_ prefix is used to eliminate passing those values implicitly to build systems |
|
|
|
# The FAM_ prefix is used to eliminate passing those values implicitly to build systems |
|
|
|
export FAM_ADDR2LINE=${CROSS_PREFIX_WITH_PATH}addr2line |
|
|
|
export FAM_ADDR2LINE=${CROSS_PREFIX_WITH_PATH}addr2line |
|
|
|
export FAM_AR=${CROSS_PREFIX_WITH_PATH}ar |
|
|
|
export FAM_AR=${CROSS_PREFIX_WITH_PATH}ar |
|
|
|
export FAM_AS=${CROSS_PREFIX_WITH_PATH}as |
|
|
|
|
|
|
|
export FAM_NM=${CROSS_PREFIX_WITH_PATH}nm |
|
|
|
export FAM_NM=${CROSS_PREFIX_WITH_PATH}nm |
|
|
|
export FAM_OBJCOPY=${CROSS_PREFIX_WITH_PATH}objcopy |
|
|
|
export FAM_OBJCOPY=${CROSS_PREFIX_WITH_PATH}objcopy |
|
|
|
export FAM_OBJDUMP=${CROSS_PREFIX_WITH_PATH}objdump |
|
|
|
export FAM_OBJDUMP=${CROSS_PREFIX_WITH_PATH}objdump |
|
|
@ -80,12 +79,13 @@ export TARGET=${TARGET_TRIPLE_MACHINE_CC}-linux-${TARGET_TRIPLE_OS}${ANDROID_PLA |
|
|
|
# The name for compiler is slightly different, so it is defined separatly. |
|
|
|
# The name for compiler is slightly different, so it is defined separatly. |
|
|
|
export FAM_CC=${TOOLCHAIN_PATH}/bin/${TARGET}-clang |
|
|
|
export FAM_CC=${TOOLCHAIN_PATH}/bin/${TARGET}-clang |
|
|
|
export FAM_CXX=${FAM_CC}++ |
|
|
|
export FAM_CXX=${FAM_CC}++ |
|
|
|
|
|
|
|
export FAM_LD=${FAM_CC} |
|
|
|
|
|
|
|
|
|
|
|
if [ $DESIRED_BINUTILS = "gnu" ] ; then |
|
|
|
if [ $DESIRED_BINUTILS = "gnu" ] ; then |
|
|
|
export FAM_LD=${CROSS_PREFIX_WITH_PATH}ld |
|
|
|
export FAM_AS=${CROSS_PREFIX_WITH_PATH}as |
|
|
|
else |
|
|
|
else |
|
|
|
# If desired binutils has to be 'llvm', then use clang as linker. |
|
|
|
# The llvm-as stucks in the beginning of FFmpeg's configure script, so use clang |
|
|
|
export FAM_LD=${FAM_CC} |
|
|
|
export FAM_AS=${FAM_CC} |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# TODO consider abondaning this strategy of defining the name of the clang wrapper |
|
|
|
# TODO consider abondaning this strategy of defining the name of the clang wrapper |
|
|
|