Override special make variables
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Tue, 23 Jul 2019 14:56:40 +0000 (16:56 +0200)
committerGitHub <noreply@github.com>
Tue, 23 Jul 2019 14:56:40 +0000 (16:56 +0200)
as seen in https://github.com/xianyi/OpenBLAS/issues/1912#issuecomment-514183900 , any external setting of TARGET_ARCH (which could result from building OpenBLAS as part of a larger project that actually uses this variable) would cause the utest build to fail.
(Other subtargets appear to be unaffected as they do not use implicit make rules)

utest/Makefile

index cbe639c..5846db0 100644 (file)
@@ -1,6 +1,9 @@
 UTEST_CHECK = 1
 TOPDIR = ..
 
+override TARGET_ARCH=
+override TARGET_MACH=
+
 UTESTBIN=openblas_utest
 
 .PHONY : all