Re: [cc65] Forced imports by linker config

From: <silverdr1wfmh.org.pl>
Date: 2010-11-12 17:19:02
On 2010-11-12, at 17:09, Ullrich von Bassewitz wrote:

> [-o switch, order of command line arguments]
>> That seems quite surprising to the ordinary user. Normally one tends
>> to put the '-o' rather towards the end of a compiler / linker
>> cmdline...
>
> Unfortunately I don't see a way around it. The config file may contain
> imports, so it must be read before the libraries that may contain  
> the matching
> exports. On the other side, the config file usually references the  
> output file
> name using %O, which in turn means, it must be known when it is read.
>
> Since I felt into that pit myself (the library makefiles had the  
> wrong order,
> so the linker happily generated drivers with an output name of  
> "a.out"), I've
> added a warning to the linker. If %O has been used in the config,  
> and -o is
> given later on the command line, you will get a diagnostic.

As per previous message - how about parsing first, executing in the  
required order afterwards?

-- 
SD!
----------------------------------------------------------------------
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 Nov 12 17:25:53 2010

This archive was generated by hypermail 2.1.8 : 2010-11-12 17:25:56 CET