From a26832f3c9ada7e01d863b2b97079dbef978983a Mon Sep 17 00:00:00 2001 From: Evgeny Gavrin Date: Thu, 9 Jul 2015 15:25:21 +0300 Subject: [PATCH] Fix strip handling for cross build configurations. JerryScript-DCO-1.0-Signed-off-by: Evgeny Gavrin e.gavrin@samsung.com --- build/configs/toolchain_linux_armv7l-el.cmake | 2 ++ build/configs/toolchain_linux_armv7l-hf.cmake | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build/configs/toolchain_linux_armv7l-el.cmake b/build/configs/toolchain_linux_armv7l-el.cmake index 13f06769a..7ae74d3d5 100644 --- a/build/configs/toolchain_linux_armv7l-el.cmake +++ b/build/configs/toolchain_linux_armv7l-el.cmake @@ -17,5 +17,7 @@ set(CMAKE_SYSTEM_PROCESSOR armv7l-el) set(CMAKE_C_COMPILER arm-linux-gnueabi-gcc) set(CMAKE_CXX_COMPILER arm-linux-gnueabi-g++) +# FIXME: This could break cross compilation, when the strip is not for the target architecture +find_program(CMAKE_STRIP NAMES arm-linux-gnueabi-strip strip) set(FLAGS_COMMON_ARCH -mlittle-endian -mthumb) diff --git a/build/configs/toolchain_linux_armv7l-hf.cmake b/build/configs/toolchain_linux_armv7l-hf.cmake index a5205a510..80ebe41ed 100644 --- a/build/configs/toolchain_linux_armv7l-hf.cmake +++ b/build/configs/toolchain_linux_armv7l-hf.cmake @@ -17,7 +17,8 @@ set(CMAKE_SYSTEM_PROCESSOR armv7l-hf) set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc) set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++) - +# FIXME: This could break cross compilation, when the strip is not for the target architecture +find_program(CMAKE_STRIP NAMES arm-linux-gnueabihf-strip strip) # # Limit fpu to VFPv3 with d0-d15 registers #