Skip to content

Commit

Permalink
add-path modification for building on Horizon (Bears-R-Us#3423)
Browse files Browse the repository at this point in the history
* small fix to add-path so that only one set of flags is added for each library

* tab to spaces
  • Loading branch information
brandon-neth authored Jul 11, 2024
1 parent 592c824 commit 52a4380
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52a4380

Please sign in to comment.