<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>I know it can be done. TenFourFox does it. It builds with Macports infrastructure, required parts to support c++11 are moved into the application bundle, and there are scripts that appear to update the install names as you describe. There is a description in the "building tenfourfox" page. <<a href="https://github.com/classilla/tenfourfox/wiki/HowToBuild45">https://github.com/classilla/tenfourfox/wiki/HowToBuild45</a>></div><div><br></div><div>For 10.5+ only, all the libs could be @rpath based instead I believe. </div><div><br></div><div>Ken</div><div><br>On Jan 12, 2018, at 11:15 PM, Mojca Miklavec <<a href="mailto:mojca@macports.org">mojca@macports.org</a>> wrote:<br><br></div><blockquote type="cite"><div><span>Hi.</span><br><span></span><br><span>I would like to build and distribute some poppler-based command-line</span><br><span>utilities (I would compile them with compiler from MacPorts, but</span><br><span>distribute it to users with MacPorts).</span><br><span></span><br><span>I could use either gcc or clang, but what are the options to make that</span><br><span>work for 10.5/10.6?</span><br><span>Can libc++ or libstdc++ be linked with something like</span><br><span>@executable_path/../libl/libstdc++.dylib and then distributed</span><br><span>alongside the binaries? Can lib[std]c++ be built statically (I have an</span><br><span>impression that's not possible on mac)? What consequences would such</span><br><span>packages have for, say, users of 10.13 trying to run such binaries?</span><br><span></span><br><span>If this is not feasible, I would target 10.7, but if it's feasible, I</span><br><span>would optionally try to get it working also for PPC. I'm willing to</span><br><span>spend a bit of extra effort, but I have no experience with</span><br><span>transferring the binaries to a computer without lib[std]c++ libraries</span><br><span>yet. The target audience would be users of any system from the minimum</span><br><span>supported version up to 10.10. There will be another version for those</span><br><span>using a supported system compiled on 10.11.</span><br><span></span><br><span>Thank you,</span><br><span> Mojca</span><br></div></blockquote></body></html>