@@ -277,6 +277,15 @@ NO_LAPACK = 1
277
277
override FEXTRALIB =
278
278
endif
279
279
280
+ ifeq ($(C_COMPILER), GCC)
281
+ GCCVERSIONGTEQ4 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 4)
282
+ GCCVERSIONGT4 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \> 4)
283
+ GCCVERSIONGT5 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \> 5)
284
+ GCCVERSIONGTEQ7 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 7)
285
+ GCCVERSIONGTEQ9 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 9)
286
+ GCCMINORVERSIONGTEQ7 := $(shell expr `$(CC) -dumpversion | cut -f2 -d.` \>= 7)
287
+ endif
288
+
280
289
#
281
290
# OS dependent settings
282
291
#
@@ -323,13 +332,7 @@ ifeq ($(C_COMPILER), CLANG)
323
332
CCOMMON_OPT += -DMS_ABI
324
333
endif
325
334
326
- ifeq ($(C_COMPILER), GCC)
327
335
#Version tests for supporting specific features (MS_ABI, POWER9 intrinsics)
328
- GCCVERSIONGTEQ4 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 4)
329
- GCCVERSIONGT4 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \> 4)
330
- GCCVERSIONGTEQ7 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 7)
331
- GCCVERSIONGTEQ9 := $(shell expr `$(CC) -dumpversion | cut -f1 -d.` \>= 9)
332
- GCCMINORVERSIONGTEQ7 := $(shell expr `$(CC) -dumpversion | cut -f2 -d.` \>= 7)
333
336
ifeq ($(GCCVERSIONGT4), 1)
334
337
# GCC Major version > 4
335
338
# It is compatible with MSVC ABI.
@@ -343,7 +346,6 @@ ifeq ($(GCCMINORVERSIONGTEQ7), 1)
343
346
CCOMMON_OPT += -DMS_ABI
344
347
endif
345
348
endif
346
- endif
347
349
348
350
# Ensure the correct stack alignment on Win32
349
351
# http://permalink.gmane.org/gmane.comp.lib.openblas.general/97
0 commit comments