Blame SOURCES/openblas-0.2.15-system_lapack.patch

491fcf
diff -up OpenBLAS-0.2.15/Makefile.system_lapack OpenBLAS-0.2.15/Makefile
491fcf
--- OpenBLAS-0.2.15/Makefile.system_lapack	2015-10-27 13:44:50.000000000 -0700
491fcf
+++ OpenBLAS-0.2.15/Makefile	2015-10-28 09:14:56.696685503 -0700
491fcf
@@ -16,11 +16,7 @@ BLASDIRS += reference
491fcf
 endif
491fcf
 
491fcf
 SUBDIRS	= $(BLASDIRS)
491fcf
-ifneq ($(NO_LAPACK), 1)
491fcf
-SUBDIRS	+= lapack
491fcf
-endif
491fcf
-
491fcf
-LAPACK_NOOPT := $(filter-out -O0 -O1 -O2 -O3 -Ofast,$(LAPACK_FFLAGS))
491fcf
+SUBDIRS += lapack
491fcf
 
491fcf
 SUBDIRS_ALL = $(SUBDIRS) test ctest utest exports benchmark ../laswp ../bench
491fcf
 
491fcf
@@ -211,57 +207,8 @@ hpl_p :
491fcf
 	fi; \
491fcf
 	done
491fcf
 
491fcf
-ifeq ($(NO_LAPACK), 1)
491fcf
 netlib :
491fcf
-
491fcf
-else
491fcf
-netlib : lapack_prebuild
491fcf
-ifndef NOFORTRAN
491fcf
-	@$(MAKE) -C $(NETLIB_LAPACK_DIR) lapacklib
491fcf
-	@$(MAKE) -C $(NETLIB_LAPACK_DIR) tmglib
491fcf
-endif
491fcf
-ifndef NO_LAPACKE
491fcf
-	@$(MAKE) -C $(NETLIB_LAPACK_DIR) lapackelib
491fcf
-endif
491fcf
-endif
491fcf
-
491fcf
-prof_lapack : lapack_prebuild
491fcf
-	@$(MAKE) -C $(NETLIB_LAPACK_DIR) lapack_prof
491fcf
-
491fcf
-lapack_prebuild :
491fcf
-ifndef NOFORTRAN
491fcf
-	-@echo "FORTRAN     = $(FC)" > $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "OPTS        = $(LAPACK_FFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "POPTS       = $(LAPACK_FPFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "NOOPT       = -O0 $(LAPACK_NOOPT)" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "PNOOPT      = $(LAPACK_FPFLAGS) -O0" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "LOADOPTS    = $(FFLAGS) $(EXTRALIB)" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "CC          = $(CC)" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "override CFLAGS      = $(LAPACK_CFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "ARCH        = $(AR)" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "ARCHFLAGS   = -ru" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "RANLIB      = $(RANLIB)" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "LAPACKLIB   = ../$(LIBNAME)" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "TMGLIB      = ../$(LIBNAME)" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "BLASLIB     = ../../../$(LIBNAME)" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "LAPACKELIB  = ../$(LIBNAME)" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "LAPACKLIB_P = ../$(LIBNAME_P)" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "SUFFIX      = $(SUFFIX)" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "PSUFFIX     = $(PSUFFIX)" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "CEXTRALIB   = $(EXTRALIB)" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-ifeq ($(FC), gfortran)
491fcf
-	-@echo "TIMER       = INT_ETIME" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-ifdef SMP
491fcf
-	-@echo "LOADER      = $(FC) -pthread" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-else
491fcf
-	-@echo "LOADER      = $(FC)" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-endif
491fcf
-else
491fcf
-	-@echo "TIMER       = NONE" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-	-@echo "LOADER      = $(FC)" >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-endif
491fcf
-	-@cat  make.inc >> $(NETLIB_LAPACK_DIR)/make.inc
491fcf
-endif
491fcf
+	@$(MAKE) -C $(NETLIB_LAPACK_DIR)
491fcf
 
491fcf
 large.tgz :
491fcf
 ifndef NOFORTRAN
491fcf
diff -up OpenBLAS-0.2.15/Makefile.system.system_lapack OpenBLAS-0.2.15/Makefile.system
491fcf
--- OpenBLAS-0.2.15/Makefile.system.system_lapack	2015-10-27 13:44:50.000000000 -0700
491fcf
+++ OpenBLAS-0.2.15/Makefile.system	2015-10-28 09:14:39.994350500 -0700
491fcf
@@ -9,7 +9,7 @@ ifndef TOPDIR
491fcf
 TOPDIR = .
491fcf
 endif
491fcf
 
491fcf
-NETLIB_LAPACK_DIR = $(TOPDIR)/lapack-netlib
491fcf
+NETLIB_LAPACK_DIR = $(TOPDIR)/netliblapack
491fcf
 
491fcf
 # Default C compiler
491fcf
 # - Only set if not specified on the command line or inherited from the environment.