[MITgcm-devel] linking order in genmake2

Chris Hill cnh at mit.edu
Tue Nov 4 20:53:43 EST 2003


Patrick,

 You mean linking as in soft links with "ln -s" not linking as in linking
and loading with "ld" - is that right?

Chris
> -----Original Message-----
> From: mitgcm-devel-bounces at mitgcm.org 
> [mailto:mitgcm-devel-bounces at mitgcm.org] On Behalf Of Ed Hill
> Sent: Tuesday, November 04, 2003 8:36 PM
> To: MITgcm-devel
> Subject: Re: [MITgcm-devel] linking order in genmake2
> 
> On Tue, 2003-11-04 at 18:56, Patrick Heimbach wrote:
> > Hi Ed,
> > 
> > I have a question regarding the linking order in genmake2.
> > Is it always alpabetical?
> > For example, since mom_fluxform comes before mom_vecinv 
> that seems to 
> > work fine.
> > Now I have routines in pkg/ecco/ which should supersede routines in 
> > pkg/cost/ I was hoping that by placing 'ecco' ahead of 'cost'
> > in packages.conf might do the trick, but apparently it doesn't.
> 
> 
> Hi Patrick,
> 
> Off the top of my head, heres two possible approaches:
> 
>   1) come up with a way to exclude the unwanted subroutines 
>      so the compiler/linker can't pick the unwanted ones, or
> 
>   2) build using static libraries so that we force the linker 
>      to see certain routines first.
> 
> Could you send me some more concrete examples?  I'll be happy 
> to re-work our makefile to do either of the above.
> 
> Ed
> 
> --
> Edward H. Hill III, PhD
> office:  MIT Dept. of EAPS;  Room 54-1424;  77 Massachusetts Ave.
>             Cambridge, MA 02139-4307
> email:   eh3 at mit.edu,  ed at eh3.com
> URL:     http://web.mit.edu/eh3/
> phone:   617-253-0098
> fax:     617-253-4464
> 




More information about the MITgcm-devel mailing list