Re: [cc65] Does 4529 TGI library compile?

From: Spiro Trikaliotis <ml-cc651trikaliotis.net>
Date: 2009-12-17 21:08:54
Hello Uz,

* On Thu, Dec 17, 2009 at 08:26:05PM +0100 Ullrich von Bassewitz wrote:

> > I applied the following patch:
> 
> The include file tgi-kernel.inc contains
> 
>         .global         _tgi_ellipse
> 
> so the patch should not be necessary. I can build the library without problems
> here.

*That* was the important hint. I ran ca65 with strace, and I found the
reason why I have different behaviour:

For the machines where the build failed, cc65 was already installed.
Thus, ca65 found /usr/lib/cc65/asminc/tgi-kernel.inc, which is an older
file which does not include the relevant .global lines. Thus,
compilation failed.

On the machine where the build worked, there is no cc65 installed yet.
Thus, /usr/lib/cc65/asminc/tgi-kernel.inc was not available, and
../../asminc/tgi-kernel.inc was used instead which was the right one.

Thus, the problem is the search order for include directories. I applied
the attached patch, and everything works fine now, even with installed
cc65 and older include headers.

The same patch might be appropriate in other libsrc/ directories.

Regards,
Spiro.

-- 
Spiro R. Trikaliotis                              http://opencbm.sf.net/
http://www.trikaliotis.net/                     http://www.viceteam.org/

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Dec 17 21:09:16 2009

This archive was generated by hypermail 2.1.8 : 2009-12-17 21:09:19 CET