Skip to content

Commit 2216948

Browse files
kevinxie4cbingos
authored andcommitted
fix rpath issue on MacOS: rpath only accept a single path
1 parent ddf1bca commit 2216948

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ExtUtils/MM_Unix.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,8 @@ sub xs_make_dynamic_lib {
10621062
# both clang and gcc support -Wl,-rpath, but only clang supports
10631063
# -rpath so by using -Wl,-rpath we avoid having to check for the
10641064
# type of compiler
1065-
$ldrun = qq{-Wl,-rpath,"$self->{LD_RUN_PATH}"};
1065+
my @dirs = split ':', $self->{LD_RUN_PATH};
1066+
$ldrun = join " ", map(qq{-Wl,-rpath,"$_"}, @dirs);
10661067
}
10671068
}
10681069

0 commit comments

Comments
 (0)