Skip to content

Commit 3f5d145

Browse files
committed
build: minor fixes to build on windows with make
This patch contains following fixes 1. Fix to build without PIC flag 2. Define LAPACK_COMPLEX_STRUCTURE for windows. Builds are failing without it and changes are consistent with the CMake rules defined in system.cmake (line 576)
1 parent 18b19d1 commit 3f5d145

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile.system

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1536,7 +1536,7 @@ override FFLAGS += $(COMMON_OPT) $(FCOMMON_OPT)
15361536
override FPFLAGS += $(FCOMMON_OPT) $(COMMON_PROF)
15371537
#MAKEOVERRIDES =
15381538

1539-
ifdef NEED_PIC
1539+
ifeq ($(NEED_PIC), 1)
15401540
ifeq (,$(findstring PIC,$(FFLAGS)))
15411541
override FFLAGS += -fPIC
15421542
endif
@@ -1566,6 +1566,7 @@ endif
15661566

15671567
ifdef OS_WINDOWS
15681568
LAPACK_CFLAGS += -DOPENBLAS_OS_WINDOWS
1569+
LAPACK_CFLAGS += -DLAPACK_COMPLEX_STRUCTURE
15691570
endif
15701571
ifeq ($(C_COMPILER), LSB)
15711572
LAPACK_CFLAGS += -DLAPACK_COMPLEX_STRUCTURE

0 commit comments

Comments
 (0)