OSX: Remove RPATHs from git-annex binary, which are not needed, slow down startup, and break the OSX Sierra linker.

ghc 8.0.2 may make this unncessary, but it's not in a stackage version yet,
so put in a workaround.

Note that the linux builds already delete the RPATHs for similar reasons.

This commit was sponsored by Josh Taylor on Patreon.
This commit is contained in:
Joey Hess 2016-11-07 14:21:30 -04:00
parent 2f15753cd3
commit c44ac268be
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
3 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,23 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2016-11-07T17:59:14Z"
content="""
`otool -l git-annex` shows hundreds of unnecessary RPATHs, removing
them should fix this.
One way would be to use `install_name_tool -delete_rpath` for each
of them.
It would be better to upgrade to a fixed ghc,
if it has fixed this RPATH mess. ghc 8.0.2 may fix it.
But the OSX autobuilder is using stack, and no stackage LTS or nightly
includes ghc 8.0.2 yet.
Ok, I've put in the `install_name_tool -delete_rpath` workaround
for the dmg build.
Bug reporter: Please see if
<https://downloads.kitenet.net/git-annex/autobuild/x86_64-apple-yosemite/git-annex.dmg>
has fixed the problem for you.
"""]]