<div dir="ltr">I compile my Fortran and C project using the GCC and Intel compilers on Mac OS X. After calls to fixup_bundle the required dynamic libraries get copied into the Contents/MacOS/ directory, and libgcc_s.1.dylib is copied there when compiling with either of the compilers. However, the output of otool -L ...../Contents/MacOS/myapp is different depending on which compiler was used. For the GCC compiled and fixed up executable the output is: `@executable_path/../MacOS/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)` whereas for the Intel compiled bundle executable it is: `/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 2577.0.0)`<div>
<br></div><div>So my questions are:</div><div><ol><li>Will the present a problem running the packaged binary on other Macs which may not have compilers installed?</li><li>Why did this happen?</li><li>Is there something I can do to fix it, if it is broken.</li>
</ol><div>Bellow is some of the output from the 'install' target, where the 'fixup_bundle' command is called:</div><div><br></div><div>Intel:</div><div><div>Install the project...</div><div>-- Install configuration: "Release"</div>
<div>-- Installing: /Volumes/MYAPP/legacy/APPLE/./myapp.app</div><div>-- Installing: /Volumes/MYAPP/legacy/APPLE/./myapp.app/Contents</div><div>-- Installing: /Volumes/MYAPP/legacy/APPLE/./myapp.app/Contents/Info.plist</div>
<div>-- Installing: /Volumes/MYAPP/legacy/APPLE/./myapp.app/Contents/MacOS</div><div>-- Installing: /Volumes/MYAPP/legacy/APPLE/./myapp.app/Contents/MacOS/myapp</div><div>-- Installing: /Volumes/MYAPP/legacy/APPLE/./myapp.app/Contents/Resources</div>
<div>-- Installing: /Volumes/MYAPP/legacy/APPLE/./myapp.app/Contents/Resources/myapp.icns</div><div>-- fixup_bundle</div><div>-- app='/Volumes/MYAPP/legacy/APPLE/myapp.app'</div><div>-- libs=''</div><div>
-- dirs=''</div><div>-- fixup_bundle: preparing...</div><div>-- fixup_bundle: copying...</div><div>-- 1/6: *NOT* copying '/Volumes/MYAPP/legacy/APPLE/myapp.app/Contents/MacOS/myapp'</div><div>-- 2/6: copying '/usr/local/lib/libgcc_s.1.dylib'</div>
<div>-- 3/6: copying '/usr/local/lib/libstdc++.6.dylib'</div><div>-- fixup_bundle: fixing...</div><div>-- 4/6: fixing up '/Volumes/MYAPP/legacy/APPLE/myapp.app/Contents/MacOS/myapp'</div><div>-- 5/6: fixing up '/Volumes/MYAPP/legacy/APPLE/myapp.app/Contents/MacOS/libgcc_s.1.dylib'</div>
<div>-- 6/6: fixing up '/Volumes/MYAPP/legacy/APPLE/myapp.app/Contents/MacOS/libstdc++.6.dylib'</div><div>-- fixup_bundle: cleaning up...</div><div>-- fixup_bundle: verifying...</div><div>-- ===========================================================================</div>
<div>-- Analyzing app='/Volumes/MYAPP/legacy/APPLE/myapp.app'</div><div>-- bundle='/Volumes/MYAPP/legacy/APPLE/myapp.app'</div><div>-- executable='/Volumes/MYAPP/legacy/APPLE/myapp.app/Contents/MacOS/myapp'</div>
<div>-- valid='1'</div><div>-- executable file 1: /Volumes/MYAPP/legacy/APPLE/myapp.app/Contents/MacOS/myapp</div><div>-- verified='1'</div><div>-- info='Verified 1 executable files in '/Volumes/MYAPP/legacy/APPLE/myapp.app''</div>
<div>-- </div><div>-- verified='1'</div><div>-- info=''</div><div>-- </div><div>-- fixup_bundle: done</div></div><div><br></div><div>gcc/gfortran:</div><div><div>Install the project...</div><div>-- Install configuration: "Release"</div>
<div>-- Installing: /Volumes/MYAPP/legacy/APPLE/./myapp.app</div><div>-- Installing: /Volumes/MYAPP/legacy/APPLE/./myapp.app/Contents</div><div>-- Installing: /Volumes/MYAPP/legacy/APPLE/./myapp.app/Contents/Info.plist</div>
<div>-- Installing: /Volumes/MYAPP/legacy/APPLE/./myapp.app/Contents/MacOS</div><div>-- Installing: /Volumes/MYAPP/legacy/APPLE/./myapp.app/Contents/MacOS/myapp</div><div>-- Installing: /Volumes/MYAPP/legacy/APPLE/./myapp.app/Contents/Resources</div>
<div>-- Installing: /Volumes/MYAPP/legacy/APPLE/./myapp.app/Contents/Resources/myapp.icns</div><div>-- fixup_bundle</div><div>-- app='/Volumes/MYAPP/legacy/APPLE/myapp.app'</div><div>-- libs=''</div><div>
-- dirs=''</div><div>-- fixup_bundle: preparing...</div><div>-- fixup_bundle: copying...</div><div>-- 1/8: *NOT* copying '/Volumes/MYAPP/legacy/APPLE/myapp.app/Contents/MacOS/myapp'</div><div>-- 2/8: copying '/opt/local/lib/libgcc/libgcc_s.1.dylib'</div>
<div>-- 3/8: copying '/opt/local/lib/libgcc/libgfortran.3.dylib'</div><div>-- 4/8: copying '/opt/local/lib/libgcc/libquadmath.0.dylib'</div><div>-- fixup_bundle: fixing...</div><div>-- 5/8: fixing up '/Volumes/MYAPP/legacy/APPLE/myapp.app/Contents/MacOS/myapp'</div>
<div>-- 6/8: fixing up '/Volumes/MYAPP/legacy/APPLE/myapp.app/Contents/MacOS/libgcc_s.1.dylib'</div><div>-- 7/8: fixing up '/Volumes/MYAPP/legacy/APPLE/myapp.app/Contents/MacOS/libgfortran.3.dylib'</div><div>
-- 8/8: fixing up '/Volumes/MYAPP/legacy/APPLE/myapp.app/Contents/MacOS/libquadmath.0.dylib'</div><div>-- fixup_bundle: cleaning up...</div><div>-- fixup_bundle: verifying...</div><div>-- ===========================================================================</div>
<div>-- Analyzing app='/Volumes/MYAPP/legacy/APPLE/myapp.app'</div><div>-- bundle='/Volumes/MYAPP/legacy/APPLE/myapp.app'</div><div>-- executable='/Volumes/MYAPP/legacy/APPLE/myapp.app/Contents/MacOS/myapp'</div>
<div>-- valid='1'</div><div>-- executable file 1: /Volumes/MYAPP/legacy/APPLE/myapp.app/Contents/MacOS/myapp</div><div>-- verified='1'</div><div>-- info='Verified 1 executable files in '/Volumes/MYAPP/legacy/APPLE/myapp.app''</div>
<div>-- </div><div>-- verified='1'</div><div>-- info=''</div><div>-- </div><div>-- fixup_bundle: done</div></div><div><br></div><div>Thanks,</div><br clear="all"><div>Izaak Beekman<br>===================================<br>
(301)244-9367<br>Princeton University Doctoral Candidate<br>Mechanical and Aerospace Engineering<br><a href="mailto:ibeekman@princeton.edu" target="_blank">ibeekman@princeton.edu</a><br><br>UMD-CP Visiting Graduate Student<br>
Aerospace Engineering<br><a href="mailto:ibeekman@umiacs.umd.edu" target="_blank">ibeekman@umiacs.umd.edu</a><br><a href="mailto:ibeekman@umd.edu" target="_blank">ibeekman@umd.edu</a></div>
</div></div>