Skip to content

CMake: activate the rpath policy for OSX - #3544

Closed
carlosmn wants to merge 1 commit into
masterfrom
cmn/rpath-policy
Closed

CMake: activate the rpath policy for OSX#3544
carlosmn wants to merge 1 commit into
masterfrom
cmn/rpath-policy

Conversation

@carlosmn

Copy link
Copy Markdown
Member

This activates the newer policy of using rpath in the build and shuts
CMake up about it when we're building.

/cc @Therzok I figure you'd at least know whether this impacts people trying to use the library.

This activates the newer policy of using rpath in the build and shuts
CMake up about it when we're building.
@Therzok

Therzok commented Dec 11, 2015

Copy link
Copy Markdown
Member

Okay so, this shouldn't break anything. It will just generate relative paths for the linker to look in instead of using absolute paths (the default before this).

I can't try this atm, but I'll look tomorrow to see what otool -L says about the generated paths before and after this PR.

Looks good to me otherwise.

@Therzok

Therzok commented Mar 8, 2016

Copy link
Copy Markdown
Member

Okay, so I've just taken a look at this, luckily I stumbled upon it:

    @rpath/libgit2.23.dylib (compatibility version 23.0.0, current version 0.23.0)

This is what the linker path would look like. So, instead of looking for the identity library - aka libgit2 itself - in an absolute path /path/to/libgit2, and that wouldn't load libgit2 unless it was found in that path.

tl;dr this won't hurt, 👍

@carlosmn

carlosmn commented Mar 8, 2016

Copy link
Copy Markdown
Member Author

OK, then we'd just need to make this version-dependent.

@ethomson

ethomson commented Feb 3, 2018

Copy link
Copy Markdown
Member

Closed via #4513

@ethomson ethomson closed this Feb 3, 2018
@ethomson
ethomson deleted the cmn/rpath-policy branch January 9, 2019 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants