From 52a4380a9a75882e15abd496b9957ddf8be20501 Mon Sep 17 00:00:00 2001 From: brandon-neth <106398756+brandon-neth@users.noreply.github.com> Date: Thu, 11 Jul 2024 13:41:28 -0700 Subject: [PATCH] `add-path` modification for building on Horizon (#3423) * small fix to add-path so that only one set of flags is added for each library * tab to spaces --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 715d7aff40..bfe9fea3b4 100644 --- a/Makefile +++ b/Makefile @@ -56,9 +56,10 @@ define add-path ifneq ("$(wildcard $(1)/lib64)","") INCLUDE_FLAGS += -I$(1)/include -L$(1)/lib64 CHPL_FLAGS += -I$(1)/include -L$(1)/lib64 --ldflags="-Wl,-rpath,$(1)/lib64" +else + INCLUDE_FLAGS += -I$(1)/include -L$(1)/lib + CHPL_FLAGS += -I$(1)/include -L$(1)/lib --ldflags="-Wl,-rpath,$(1)/lib" endif -INCLUDE_FLAGS += -I$(1)/include -L$(1)/lib -CHPL_FLAGS += -I$(1)/include -L$(1)/lib --ldflags="-Wl,-rpath,$(1)/lib" endef # Usage: $(eval $(call add-path,/home/user/anaconda3/envs/arkouda)) # ^ no space after comma