Giter VIP home page Giter VIP logo

Comments (3)

auriamg avatar auriamg commented on July 17, 2024

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.

ksherlock avatar ksherlock commented on July 17, 2024

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.

dekdevy avatar dekdevy commented on July 17, 2024

Sweet!

from macdylibbundler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.