Re: Linking fortran libraries into a unix-level executable.
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Openpgp: id=49881AD3 User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110606 Icedove/3.1.10 Le 27/06/2011 19:45, Garance A Drosihn a écrit :
Now what they'd want to do is to come up with an executable that people in their class could run, *WITHOUT* needing to install Apple's developer tools and the package for gfortran. Sort of like static-linking it for everything in the gfortran/gcc package, but not in Apple's own system libraries.
Is there some way to do this? I tried various tricks based on reading the man pages, but haven't had any success.
You can recursively copy the library dependencies (which can be determined using otool -L), and change their expected path in the libraries themselves, and in the executables as well (using install_name_tool). And of course, your application should be designed to look (for e.g. images, documentation, etc.) for paths relative to the executable path (instead of absolute ones). Cheers, -- Stéphane _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Stéphane Glondu