configure: support @rpath placeholder in OS X.

pull/381/head
Datong Sun 7 years ago
parent e5dd25dce6
commit bbf6c271b8
No known key found for this signature in database
GPG Key ID: 1908AE626BFCE242

9
util/configure vendored

@ -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 = '';

Loading…
Cancel
Save