diff -aruN SuperLU_4.3.orig/make.inc SuperLU_4.3/make.inc --- SuperLU_4.3.orig/make.inc 2011-10-27 21:49:47.000000000 +0200 +++ SuperLU_4.3/make.inc 2012-12-20 22:21:26.422475039 +0100 @@ -21,14 +21,14 @@ # # The name of the libraries to be created/linked to # -SuperLUroot = $(HOME)/Codes/SuperLU/SuperLU_4.2 -SUPERLULIB = $(SuperLUroot)/lib/libsuperlu_4.2.a +SuperLUroot = ../ +SUPERLULIB = $(SuperLUroot)/lib/libsuperlu_4.3.a TMGLIB = libtmglib.a ## BLASLIB = $(SuperLUroot)/lib/libblas.a BLASDEF = -DUSE_VENDOR_BLAS -BLASLIB = -L$(HOME)/lib/GotoBLAS -lgoto +BLASLIB = -lblas ## ATLAS BLAS causes single-precision to fail #BLASLIB = -L/usr/lib/atlas -lblas @@ -46,12 +46,19 @@ RANLIB = ranlib CC = gcc -CFLAGS = -DPRNTlevel=0 -O3 -NOOPTS = -FORTRAN = g77 -FFLAGS = -O2 -LOADER = $(CC) -LOADOPTS = +CFLAGS = $(RPM_OPT_FLAGS) -fPIC -fschedule-insns2 \ + -funroll-loops -fstrict-aliasing -frerun-loop-opt \ + -ftree-vectorize -funit-at-a-time +ifeq ($(MACH),i386) + CFLAGS += -mtune=pentium-m -momit-leaf-frame-pointer # -ffast-math -msse2 -mfpmath=sse +else + CFLAGS += -O3 -finline-limit=720 --param max-inline-insns-auto=160 +endif +NOOPTS = $(RPM_OPT_FLAGS) -Os -fPIC +FORTRAN = gfortran +FFLAGS = $(CFLAGS) +LOADER = gcc +LOADOPTS = # # C preprocessor defs for compilation for the Fortran interface @@ -61,5 +68,5 @@ # # The directory in which Matlab is installed # -MATLAB = /usr/sww/matlab +#MATLAB = /usr/sww/matlab