Blame SOURCES/openblas-0.2.15-system_lapack.patch

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