From 0263f89bffe3a1fb3114dcad998e7b0d7119139d Mon Sep 17 00:00:00 2001 From: Datong Sun Date: Thu, 14 Jun 2018 15:40:26 -0700 Subject: [PATCH] configure: support @rpath placeholder in OS X. --- util/configure | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/util/configure b/util/configure index 0a4f09b..cf75d7d 100755 --- a/util/configure +++ b/util/configure @@ -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 = '';