[armel/Linux] Fix armel build (#1609)
authorAlexander Soldatov <soldatov.a@samsung.com>
Sun, 12 Jan 2020 07:58:09 +0000 (10:58 +0300)
committerJan Kotas <jkotas@microsoft.com>
Sun, 12 Jan 2020 07:58:09 +0000 (23:58 -0800)
Option '-DARM_SOFTFP' not passed after #27077 which required for armel build.
This commit fix it.

eng/native/gen-buildsys.sh

index 42fbb7e..32e82f2 100755 (executable)
@@ -167,6 +167,10 @@ if [ "$CROSSCOMPILE" == "1" ]; then
     cmake_extra_defines="$cmake_extra_defines -DCMAKE_TOOLCHAIN_FILE=$scriptroot/../common/cross/toolchain.cmake"
 fi
 
+if [ "$build_arch" == "armel" ]; then
+    cmake_extra_defines="$cmake_extra_defines -DARM_SOFTFP=1"
+fi
+
 cmake_command=$(command -v cmake)
 
 if [[ "$scan_build" == "ON" && "$SCAN_BUILD_COMMAND" != "" ]]; then