Comments (3)
One of the main reasons why dylibbundler never handled rpath is because rpath libraries already are "bundleable", it means the author of that library already handled bundling, and dylibbundler trying working on top of that would be redundent (and in some cases might break some setups that rely on rpath). I don't remember the exact syntax by heart, but you can just add some compiler flag while building your application to tell where to look for rpath libs, that should solve your issue
from macdylibbundler.
The linker flag is:
-rpath path
Add path to the runpath search path list for image being created. At
runtime, dyld uses the runpath when searching for dylibs whose load
path begins with @rpath/.
To pass it via clang, you need to escape it, e.g.:
-Wl,-rpath,@executable_path/../Frameworks
@executable_path
is relative to the main executable. @loader_path
is relative to a library.
That embeds an LC_RPATH
load command into the binary. use otool -l
to verify it. e.g.:
Load command 42
cmd LC_RPATH
cmdsize 48
path @executable_path/../Frameworks (offset 12)
from macdylibbundler.
Sweet!
from macdylibbundler.
Related Issues (20)
- bundling qemu doesn't rewrite libhogweed libnettle deps correctly HOT 3
- Link with unversioned dylibs HOT 3
- Not Skipping Request for Library Location Request When the Prefix is Suposed to be Ignored
- New build failure, undefined symbols HOT 3
- Automatic release uploading broken
- Processed app crashes HOT 5
- Failed at a barebone example. HOT 6
- Regression somewhere after 9cf053f8b399512e12d7931fa24f466057e58044 HOT 7
- dylibbundler failed on macOS 11 (beta) HOT 5
- dylibbundler can't works with application + last version of libcurl HOT 2
- Can't build dylibbundler - missing PATH_MAX HOT 5
- Signed/notarized dylibs supported? HOT 2
- Tag and release so Homebrew can pick it up? HOT 3
- Error fixing RPATH on universal binary dylib
- Need ad-hoc signing for moved libraries since perhpas macOS 12.1 Monterey HOT 1
- Fix identified. Missing "/" on path concatenation. HOT 3
- Any way to not ignore system libs? HOT 3
- dylibbundler fails when building widelands on M1 Mac.
- dylibbundler doesn't rewrite paths correctly when using alternative library search path
- copy failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from macdylibbundler.