From da6b202d5058987140793e2b294d38a2827832db Mon Sep 17 00:00:00 2001 From: Ahmad Rezaii Date: Tue, 26 Nov 2024 17:37:33 -0700 Subject: [PATCH] adjust flag to set py binding rpath Signed-off-by: Ahmad Rezaii --- tools/chapel-py/setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/chapel-py/setup.py b/tools/chapel-py/setup.py index bee452790c1c..30c270872467 100644 --- a/tools/chapel-py/setup.py +++ b/tools/chapel-py/setup.py @@ -64,9 +64,8 @@ LDFLAGS = [] LDFLAGS += [ "-L{}".format(chpl_lib_path), + "-Wl,-rpath,{}".format(chpl_lib_path), "-lChplFrontendShared", - "-Wl,-rpath", - chpl_lib_path, ] if str(chpl_variables.get("CHPL_SANITIZE")) == "address":