libpsm2/makefile-distro-from-environment.patch
Honggang Li 7c173031a6 Rebase to latest upstream release PSM2_11.2.185
Signed-off-by: Honggang Li <honli@redhat.com>
2021-06-17 09:10:08 -04:00

15 lines
589 B
Diff

diff --git a/Makefile b/Makefile
index 5a31d64..d819899 100644
--- a/Makefile
+++ b/Makefile
@@ -164,7 +164,8 @@ nthreads := $(shell echo $$(( `nproc` * 2 )) )
# The DISTRO variable is used subsequently for variable
# behaviors of the 3 distros.
-DISTRO := $(shell . /etc/os-release; if [[ "$$ID" == "sle_hpc" ]]; then ID="sles"; fi; echo $$ID)
+# Use DISTRO from the environment
+# DISTRO := $(shell . /etc/os-release; if [[ "$$ID" == "sle_hpc" ]]; then ID="sles"; fi; echo $$ID)
# By default the following two variables have the following values:
LIBPSM2_COMPAT_CONF_DIR := /etc