From 2d49db2f5bebbd727cb860cff023705ecd4bfda3 Mon Sep 17 00:00:00 2001 From: wernsaar Date: Wed, 16 Oct 2013 19:04:42 +0200 Subject: [PATCH] moved compiler flags from Makefile.rule to Makefile.arm --- Makefile.arm | 8 ++++++-- Makefile.rule | 14 +++++++------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/Makefile.arm b/Makefile.arm index 05ea9c679..6cdeb2f75 100644 --- a/Makefile.arm +++ b/Makefile.arm @@ -1,3 +1,7 @@ -ifdef BINARY64 -else + +ifeq ($(CORE), ARMV7) +CCOMMON_OPT += -marm -mfpu=vfpv3 -mfloat-abi=hard +FCOMMON_OPT += -marm -mfpu=vfpv3 -mfloat-abi=hard endif + + diff --git a/Makefile.rule b/Makefile.rule index a7aa0873d..534f4d1a2 100644 --- a/Makefile.rule +++ b/Makefile.rule @@ -19,14 +19,14 @@ TARGET = ARMV7 # C compiler including binary type(32bit / 64bit). Default is gcc. # Don't use Intel Compiler or PGI, it won't generate right codes as I expect. -# CC = gcc +CC = gcc # Fortran compiler. Default is g77. -# FC = gfortran +FC = gfortran # Even you can specify cross compiler. Meanwhile, please set HOSTCC. -CC = arm-linux-gnueabihf-gcc -FC = arm-linux-gnueabihf-gfortran +#CC = arm-linux-gnueabihf-gcc +#FC = arm-linux-gnueabihf-gfortran # If you use the cross compiler, please set this host compiler. HOSTCC = gcc @@ -38,7 +38,7 @@ HOSTCC = gcc # specify it. # For force setting for single threaded, specify USE_THREAD = 0 # For force setting for multi threaded, specify USE_THREAD = 1 -USE_THREAD = 0 +#USE_THREAD = 0 # If you're going to use this library with OpenMP, please comment it in. # USE_OPENMP = 1 @@ -46,7 +46,7 @@ USE_THREAD = 0 # You can define maximum number of threads. Basically it should be # less than actual number of cores. If you don't specify one, it's # automatically detected by the the script. -NUM_THREADS = 4 +NUM_THREADS = 16 # if you don't need generate the shared library, please comment it in. # NO_SHARED = 1 @@ -123,7 +123,7 @@ NO_AFFINITY = 1 # Common Optimization Flag; # The default -O2 is enough. -COMMON_OPT = -O0 -marm -mfpu=vfpv3 -fno-omit-frame-pointer +#COMMON_OPT = -O3 -marm -mfpu=vfpv3 -mfloat-abi=hard # Profiling flags COMMON_PROF = -pg