configure: support @rpath placeholder in OS X.

This commit is contained in:
Datong Sun 2018-06-14 15:40:26 -07:00 committed by Yichun Zhang (agentzh)
parent fe8f773b1d
commit 0263f89bff
1 changed files with 8 additions and 1 deletions

9
util/configure vendored
View File

@ -341,7 +341,14 @@ if ($platform ne 'msys') {
my $resty_opts = build_resty_opts(\%resty_opts);
if (@ngx_rpaths) {
unshift @ngx_ld_opts, "-Wl,-rpath," . join(":", @ngx_rpaths);
if ($platform eq 'macosx') {
for (@ngx_rpaths) {
unshift @ngx_ld_opts, "-Wl,-rpath,$_";
}
} else {
unshift @ngx_ld_opts, "-Wl,-rpath," . join ":", @ngx_rpaths;
}
}
my $ld_opts = '';