Mail Archives: djgpp-workers/1998/06/30/09:17:30
On Mon, 29 Jun 1998, Andris Pavenis wrote:
[...]
> > library dir, and the (primary) include path. But gcc already has machinery
> > for searching these files in its own private directory tree
> > (/usr/local/lib/gcc-lib/${PLATFORM}/${VERSION}/specs and friends).
> >
> > So why not just use that machinery, after some fiddling, if necessary and
> > be done with it?
>
> The problem is that if $DJDIR/lib is in library search path then gcc-
> 2.8.1 searches this directory before it's own one, so files from
> djdev201 will erroroulsy be used.
I still don't really understand why we can't convince gcc to work as it
would on Unix-systems: $DJDIR/{include,lib} would be used in place of
/usr/{include,linux}, and the compiler-specific path
$DJDIR/lib/gcc-lib/2.81/ replacing
/usr/local/lib/gcc-lib/${platform}/${version}?
That scheme is normally sufficient to ensure that the gcc version-specific
files in its private directory (.../gcc-lib/...) are always found before
their equivalents in the system-wide path /usr/....
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -