Message-ID: From: "Andris Pavenis" To: Peter Gerwinski , djgpp-workers AT delorie DOT com Date: Wed, 10 Mar 1999 18:58:36 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: DJGPP preprocessor and link command specs CC: Frank Heckenbach In-reply-to: <19990310011358.K281@esmeralda.gerwinski.de> X-mailer: Pegasus Mail for Win32 (v3.02b14) Reply-To: djgpp-workers AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 10 Mar 99, at 1:13, Peter Gerwinski wrote: > Hello again, DJGPP workers! > > DJGPP requries some hacks on the preprocessor and link command > specs. However while building the compiler itself, `xgcc' dumps > specs that do not contain the DJGPP specifica, and it is just by > chance that the compilation works. The differences are as > follows: > Which version of egcs and DJGPP did You use. Did You take sources from DJGPP distribution or You used unmodified sources. With sources from DJGPP distribution (see v2gnu/beta/egcs111s.zip) there is no need to change dumped specs at all. For example I'm getting for egcs-1.1.2-pre3 *predefines: -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) LINK_COMMAND_SPEC is defined but not dumped of course. So DJGPP is defined. DJGPP_MINOR is defined for DJGPP-2.02 in sys/version.h included from stdio.h. I dont think we should define it in specs. Andris