[MITgcm-devel] linking order in genmake2

Patrick Heimbach heimbach at MIT.EDU
Tue Nov 4 20:47:47 EST 2003


Hi Ed,

thanks, I did a quick'n dirty workaround for now.
We can discuss it tomorrow.

Cheers
-p.

Ed Hill wrote:
> 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
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> MITgcm-devel mailing list
> MITgcm-devel at mitgcm.org
> http://dev.mitgcm.org/mailman/listinfo/mitgcm-devel


-- 
Patrick Heimbach ........................... M.I.T
FON: +1/617/253-5259 .......... EAPS, Room 54-1518
FAX: +1/617/253-4464 ..... 77 Massachusetts Avenue
mailto:heimbach at mit.edu ....... Cambridge MA 02139
http://www.mit.edu/~heimbach/ .............. U.S.A




More information about the MITgcm-devel mailing list