Re: [cc65] Secondary linker configurations

From: Karri Kaksonen <karri1sipo.fi>
Date: 2009-09-25 17:52:04
Oliver Schmidt wrote:
> Would it be feasable to have "extra libs" instead of "extra objects":
> Libs to be placed on the ld65 cmdline before the "normal" target lib,
> containing alternative implementations of certain functions.
>
> Wouldn't that already solve Groepaz' usecase while still keeping the
> paradigm of "the" C- / runtime-library of the "normal" case ?!?
>   

The linkers feature to use lists is very nice. It also takes care of 
replacing modules in the libraries.

 From the Makefile:
objects= \
        lnxhdr.o \
        ...

objlists = \
        ../resident/objlist \
        ...

others = \
        @../resident/objlist \
        ...

To link stuff:

$(target) : $(objects) $(objlists)
        $(CL) -t $(SYS) -o $@ -m lynxcart.map -C lynxcart.cfg \
        $(objects) $(others) lynx.lib

If I don't like stock modules like kbhit, cgetc I just write my own ones 
and they automatically replace the stuff in the lynx.lib

I am perfectly happy with this arrangement.

--
Karri

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Sep 25 17:52:21 2009

This archive was generated by hypermail 2.1.8 : 2009-09-25 17:52:23 CEST