Skip to content

Commit

Permalink
Append USE_BLAS_FFLAGS to OPENBLAS_FFLAGS and add -frecursive -fno-op…
Browse files Browse the repository at this point in the history
…timize-sibling-calls flags
  • Loading branch information
haampie committed Mar 15, 2020
1 parent 0cae614 commit 109aaf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion deps/blas.mk
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ $(BUILDDIR)/$(OPENBLAS_SRC_DIR)/build-compiled: | $(BUILDDIR)/objconv/build-comp
endif
endif

OPENBLAS_FFLAGS := $(JFFLAGS)
OPENBLAS_FFLAGS := $(JFFLAGS) $(USE_BLAS_FFLAGS)
OPENBLAS_CFLAGS := -O2

# OPENBLAS_FFLAGS += -frecursive -fno-optimize-sibling-calls -fdefault-integer-8

# Decide whether to build for 32-bit or 64-bit arch
ifneq ($(BUILD_OS),$(OS))
OPENBLAS_BUILD_OPTS += OSNAME=$(OS) CROSS=1 HOSTCC=$(HOSTCC) CROSS_SUFFIX=$(CROSS_COMPILE)
Expand Down
2 changes: 1 addition & 1 deletion deps/tools/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ ifeq ($(USE_BLAS64), 1)
ifeq ($(USEIFC),1)
USE_BLAS_FFLAGS += -i8
else
USE_BLAS_FFLAGS += -fdefault-integer-8
USE_BLAS_FFLAGS += -frecursive -fno-optimize-sibling-calls -fdefault-integer-8
endif
endif

Expand Down

0 comments on commit 109aaf7

Please sign in to comment.