[MITgcm-devel] linking order in genmake2

Ed Hill ed at eh3.com
Tue Nov 4 20:35:39 EST 2003


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mitgcm.org/pipermail/mitgcm-devel/attachments/20031105/90a40850/attachment.sig>


More information about the MITgcm-devel mailing list