delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/07/08:46:12

Date: Tue, 7 Oct 1997 14:43:50 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Bill_HellGateS <eng60667 AT leonis DOT nus DOT sg>
cc: djgpp AT delorie DOT com
Subject: Re: PGCC Question
In-Reply-To: <Pine.OSF.3.95.971007075924.19645B-100000@leonis.nus.sg>
Message-ID: <Pine.SUN.3.91.971007144147.25685L-100000@is>
MIME-Version: 1.0

On Tue, 7 Oct 1997, Bill_HellGateS wrote:

> How do I configure DJGPP.ENV such that I and use pgcc and gccc together
> without replacing one with another? ANy one got any ideas?

First, please be sure to read the chapter in the DJGPP Knowledge Base
which explains the DJGPP.ENV syntax (type "info know hidden djgpp"
from the DOS prompt), and make sure you understand it *before* you try
to edit DJGPP.ENV.  Many people had their installation messed up by
hacking that file.

I assume that the regular gcc and pgcc are called by two different
names on your system.  Let's say pgcc's gcc is called `pgcc.exe'.
Then here's what you need to do:

       - add a [pgcc] section to DJGPP.ENV  and copy the [gcc] section
         to it;

       - put cpp.exe, cc1.exe, as.exe, ld.exe and any other
         pgcc-specific programs into a special directory;

       - define GCC_EXEC_PREFIX in the [pgcc] section that points to
         the directory where the pgcc-specific version are held (the
         directory name MUST include the trailing slash);

That's it!  (The GCC_EXEC_PREFIX variable is described in GCC's manual, 
look it up under "Invoking -> Environment".)

Note that I didn't actually test the above, so I could have missed
some additional problems.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019