File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,12 @@ BEGIN {
38
38
grep ( $^O eq $_ , qw( bsdos interix dragonfly) )
39
39
);
40
40
$Is {Android } = $^O =~ / android/ ;
41
- if ( $^O eq ' darwin' && $^X eq ' /usr/bin/perl ' ) {
41
+ if ( $^O eq ' darwin' ) {
42
42
my @osvers = split /\./, $Config {osvers };
43
- $Is {ApplCor } = ( $osvers [0] >= 18 );
43
+ if ( $^X eq ' /usr/bin/perl' ) {
44
+ $Is {ApplCor } = ( $osvers [0] >= 18 );
45
+ }
46
+ $Is {AppleRPath } = ( $osvers [0] >= 9 );
44
47
}
45
48
}
46
49
@@ -1054,7 +1057,7 @@ sub xs_make_dynamic_lib {
1054
1057
if ( $Is {IRIX } ) {
1055
1058
$ldrun = qq{ -rpath "$self ->{LD_RUN_PATH}"} ;
1056
1059
}
1057
- elsif ( $^O eq ' darwin' ) {
1060
+ elsif ( $^O eq ' darwin' && $Is { AppleRPath } ) {
1058
1061
# both clang and gcc support -Wl,-rpath, but only clang supports
1059
1062
# -rpath so by using -Wl,-rpath we avoid having to check for the
1060
1063
# type of compiler
You can’t perform that action at this time.
0 commit comments