From 4bd30d719919afeda7ec1369b124f661121d69ef Mon Sep 17 00:00:00 2001 From: Jukka Ojanen Date: Wed, 11 Mar 2015 15:31:16 +0200 Subject: Added "-mfloat-abi=softfp" as default for ARM --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0acf710..537da41 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,10 +135,12 @@ if(ENABLE_NEON) else() list(APPEND FFTS_SOURCES src/neon.s - src/arch/neon.c ) endif(DISABLE_DYNAMIC_CODE) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfpu=neon") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfloat-abi=softfp") + add_definitions(-DHAVE_NEON) elseif(ENABLE_VFP) if(NOT DISABLE_DYNAMIC_CODE) @@ -148,6 +150,8 @@ elseif(ENABLE_VFP) endif(NOT DISABLE_DYNAMIC_CODE) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfpu=vfp") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfloat-abi=softfp") + add_definitions(-DHAVE_VFP) elseif(HAVE_XMMINTRIN_H) add_definitions(-DHAVE_SSE) -- cgit v1.1