From 5b04cf7ab4a8d2cf68b068460e951075487a1097 Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Thu, 4 May 2017 11:51:29 -0700 Subject: [PATCH 1/2] Add Makefile debugging trick so that we can inspect runtime Makefile variables --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 6883e51cf..27923aa9b 100644 --- a/Makefile +++ b/Makefile @@ -329,3 +329,8 @@ endif @rm -f *.grd Makefile.conf_last config_last.h @(cd $(NETLIB_LAPACK_DIR)/TESTING && rm -f x* *.out testing_results.txt) @echo Done. + +# Makefile debugging trick: +# call print-VARIABLE to see the runtime value of any variable +print-%: + @echo '$*=$($*)' From 6e972994b23fc14b3a1c428be194b5d34f351e35 Mon Sep 17 00:00:00 2001 From: Elliot Saba Date: Thu, 4 May 2017 11:52:34 -0700 Subject: [PATCH 2/2] Force `DYNAMIC_ARCH` to empty when `DYNAMIC_CORE` is not set --- Makefile.system | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.system b/Makefile.system index 207c9961a..8d114f4ff 100644 --- a/Makefile.system +++ b/Makefile.system @@ -453,8 +453,9 @@ DYNAMIC_CORE += HASWELL ZEN endif endif +# If DYNAMIC_CORE is not set, DYNAMIC_ARCH cannot do anything, so force it to empty ifndef DYNAMIC_CORE -DYNAMIC_ARCH = +override DYNAMIC_ARCH= endif endif