Re: [cc65] Overriding library routines?

From: Greg King <greg.king41verizon.net>
Date: 2012-08-22 11:37:06
From: "Joseph Rose"; on Wednesday, July 18, 2012; at 1:50 PM -0400
>
> I don't want to add a new module to a library, or override a library
> module with a linked object file.
> Rather, I want to specify two library files, with a module of the same
> name in each;
> and, choose which version to link if the included routine is called.

You can do it -- on a global level -- the same way that you override with a
linked object file.
The rule is, "first come, first linked".

The problem is that, if the two libraries have several labels in common, you
can't choose one of those labels from one library and another one from the
other library.  _All_ common labels (that are wanted) will be linked from
the library that is seen earlier by ld65.

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Aug 22 13:00:25 2012

This archive was generated by hypermail 2.1.8 : 2012-08-22 13:00:58 CEST