Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set rpath to include mac bundle Frameworks #315

Merged
merged 1 commit into from
Dec 13, 2020

Conversation

atopuzov
Copy link
Contributor

@atopuzov atopuzov commented Oct 26, 2020

Adds a LC_RPATH to executable so that libraries that use @rpath can be found in the bundle.

$ otool -l MyApp.app/Contents/MacOS/myapp
Load command ..
          cmd LC_RPATH
      cmdsize 48
         path @executable_path/../Frameworks (offset 12)

Helps with #286 (comment)

I tested this on 10.14.6 (18G6032)

Adds a LC_RPATH to executable so that libraries that use  @rpath can be found in the bundle.
```
Load command ..
          cmd LC_RPATH
      cmdsize 48
         path @executable_path/../Frameworks (offset 12)
```
@ronaldoussoren ronaldoussoren merged commit a1665c8 into ronaldoussoren:master Dec 13, 2020
@nuffsaz
Copy link

nuffsaz commented Nov 25, 2022

I am still having problems with @rpath (using py2app 0.28.4 with python 3.10 under MacOs 10.15.7). Is there a version of py2app available that works with @rpath? I can provide more details of what I am doing if that help. Thanks.

Tokarak added a commit to Tokarak/py2app that referenced this pull request Aug 29, 2023
Fix an oversight which has exited since ronaldoussoren#315
Tokarak added a commit to Tokarak/py2app that referenced this pull request Aug 30, 2023
This reverts ronaldoussoren#315, which never worked and only applied to x86 architecture.

Signed-off-by: Tokarak <63452145+Tokarak@users.noreply.github.com>
@Tokarak Tokarak mentioned this pull request Aug 30, 2023
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