summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJukka Ojanen <jukka.ojanen@linkotec.net>2015-03-11 15:31:16 +0200
committerJukka Ojanen <jukka.ojanen@linkotec.net>2015-03-11 15:31:16 +0200
commit4bd30d719919afeda7ec1369b124f661121d69ef (patch)
tree04078d688f9f10b2c756facb6e90607352539781
parent9ba8731f20a6bf6771f9a9812268c8bf958134c6 (diff)
downloadffts-4bd30d719919afeda7ec1369b124f661121d69ef.zip
ffts-4bd30d719919afeda7ec1369b124f661121d69ef.tar.gz
Added "-mfloat-abi=softfp" as default for ARM
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
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)
OpenPOWER on IntegriCloud