diff options
author | Christiaan Baaj <christiaan.baaij@gmail.com> | 2014-01-28 08:24:55 -0600 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2014-01-28 08:24:55 -0600 |
commit | f7be53ac9dac85b83e7fe5ecede01b98a572ba48 (patch) | |
tree | ddf358efae5f9ba93ef9dd7e252311399417b00c /rules/distdir-way-opts.mk | |
parent | 943f22a4c959a2d0c0e47fc40c2163ef7760b6d9 (diff) | |
download | haskell-f7be53ac9dac85b83e7fe5ecede01b98a572ba48.tar.gz |
Fix inplace dynamic linking on OS X (#8266)
Signed-off-by: Austin Seipp <austin@well-typed.com>
Diffstat (limited to 'rules/distdir-way-opts.mk')
-rw-r--r-- | rules/distdir-way-opts.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rules/distdir-way-opts.mk b/rules/distdir-way-opts.mk index a4f525e896..8c0377eff8 100644 --- a/rules/distdir-way-opts.mk +++ b/rules/distdir-way-opts.mk @@ -138,7 +138,9 @@ $1_$2_$3_GHC_LD_OPTS += \ -fno-use-rpaths \ $$(foreach d,$$($1_$2_TRANSITIVE_DEPS),-optl-Wl$$(comma)-rpath -optl-Wl$$(comma)'$$$$ORIGIN/../$$d') -optl-Wl,-zorigin else ifeq "$$(TargetOS_CPP)" "darwin" -$1_$2_$3_GHC_LD_OPTS += -optl-Wl,-headerpad_max_install_names +$1_$2_$3_GHC_LD_OPTS += \ + -fno-use-rpaths \ + $$(foreach d,$$($1_$2_TRANSITIVE_DEPS),-optl-Wl$$(comma)-rpath -optl-Wl$$(comma)'@loader_path/../$$d') endif endif endif |