File pARMS-3.2-make.patch of Package pARMS

diff -aruN pARMS_3.2.orig/makefile.in pARMS_3.2/makefile.in
--- pARMS_3.2.orig/makefile.in	2010-11-11 11:24:00.000000000 +0100
+++ pARMS_3.2/makefile.in	2013-01-05 17:32:48.603742220 +0100
@@ -7,10 +7,16 @@
 CC			=	mpicc
 
 # optimization flags
-COPTFLAGS		=	-O3 -Wall -g
+COPTFLAGS		=
 
 # other compile options
-CFLAGS			=       -DUSE_MPI -DREAL=double -DDBL -DHAS_BLAS 
+CFLAGS			=       $(RPM_OPT_FLAGS) -DUSE_MPI -DREAL=double -DDBL -DHAS_BLAS \
+                                -funroll-loops -ftree-vectorize
+ifeq ($(shell getconf LONG_BIT),32) 
+ CFLAGS     += -mtune=pentium-m -momit-leaf-frame-pointer # -ffast-math -msse2 -mfpmath=sse
+else
+ CFLAGS     += -O3
+endif
 CFFLAGS			=	-DFORTRAN_UNDERSCORE -DVOID_POINTER_SIZE_8 
 
 # FORTRAN compiler
@@ -19,7 +25,13 @@
 F90			=	mpif90
 
 # FORTRAN compile options
-FFLAGS			=	-O3 -DVOID_POINTER_SIZE_8 -DDBL -DHAS_BLAS -g
+FFLAGS			=	$(RPM_OPT_FLAGS) -DVOID_POINTER_SIZE_8 -DDBL -DHAS_BLAS \
+                                -funroll-loops -ftree-vectorize 
+ifeq ($(shell getconf LONG_BIT),32)
+ FFLAGS     += -mtune=pentium-m -momit-leaf-frame-pointer # -ffast-math -msse2 -mfpmath=sse
+else
+ FFLAGS     += -O3
+endif
 
 # linker and options
 LINKER			=	${FC}
openSUSE Build Service is sponsored by