From: pavenis AT lanet DOT lv Message-ID: To: Eli Zaretskii , djgpp-workers AT delorie DOT com Date: Mon, 14 Jun 1999 13:54:17 +0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: Small changes to DJGPP.ENV References: In-reply-to: X-mailer: Pegasus Mail for Win32 (v3.11) Reply-To: djgpp-workers AT delorie DOT com On 14 Jun 99, at 13:09, Eli Zaretskii wrote: > > On Mon, 14 Jun 1999, Andris Pavenis wrote: > > > when specifying COMPILER_PATH=$DJDIR/bin gcc searches $DJDIR/bin > > for executables before gcc version specific directory which breaks > > things as I noted before if $DJDIR/bin contains cpp.exe. > > Why does this break things? This should only be a problem if the two > versions of cpp.exe are different. Or did I miss something? > They ARE different. gcc-2.95 installation installs cpp.exe it in $prefix/bin. Below are outputs of both when command line option -v is specified (preprocessed source skipped) Andris C:\TMP>d:\djgpp\bin\cpp -v xxx.c >/dev/null Reading specs from d:/djgpp/lib/gcc-lib/djgpp/gcc-2.95/specs gcc version gcc-2.95 19990608 (prerelease) d:/djgpp/lib/gcc-lib/djgpp/gcc-2.95/cpp.exe -lang-c -v -Dunix -Di386 -DGO32 -DD JGPP=2 -DMSDOS -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2 D__MSDOS__ -D__un ix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asystem(unix) -Asystem(msdos) -Acpu( i386) -Amachine(i386) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di 586 -Dpentium -D__i586 -D__i586__ -D__pentium -D__pentium__ -imacros d:/djgpp/bi n/../include/sys/version.h -remap xxx.c -o /dev/null GNU CPP version gcc-2.95 19990608 (prerelease) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: d:/djgpp/include d:/djgpp/include d:/djgpp/lib/gcc-lib/djgpp/gcc-2.95/../../../../djgpp/include d:/djgpp/lib/gcc-lib/djgpp/gcc-2.95/include d:/djgpp/include End of search list. The following default directories have been omitted from the search path: $DJDIR/lang/cxx End of omitted list. C:\TMP>d:\djgpp\lib\gcc-lib\djgpp\gcc-2.95\cpp -v xxx.c >/dev/null GNU CPP version gcc-2.95 19990608 (prerelease) (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: d:/djgpp/include d:/djgpp/lib/gcc-lib/djgpp/gcc-2.95/../../../../djgpp/include d:/djgpp/lib/gcc-lib/djgpp/gcc-2.95/include d:/djgpp/include End of search list. The following default directories have been omitted from the search path: $DJDIR/lang/cxx End of omitted list.