Re: Linking fortran libraries into a unix-level executable.
Re: Linking fortran libraries into a unix-level executable.
- Subject: Re: Linking fortran libraries into a unix-level executable.
- From: Stéphane Glondu <email@hidden>
- Date: Mon, 27 Jun 2011 20:13:45 +0200
- Openpgp: id=49881AD3
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden