> > > You can use the "-Xp" option to specify a path for FPC to > > > search for the > > > ppc* binaries. > > > > > > E.g. > > > > > > #!/bin/sh > > > ~/whereever/we/installed/fpc -n @~/whereever/we/installed/fpc.cfg > > > -Xp~/whereever/we/installed/compiler $* > > > > > > > Tried this and it seemed to work fine, for a while. A nasty > > side-effect is that the ~/whereever/we/installed/compiler dir comes > > first in looking for sources. Encountered the problem with > a project > > that had a unit named tokens... > > Yes. See Lazarus / View / IDE Internals / About FPC. The last > path is always the one where the compiler is. >
Looking at the fpc sources, I had already figured out that -Xp wasn't directly responsible and concluded that the compiler path was what caused the problem. The last path in a long list of unitpaths that contain only .o,.a and .ppu makes it still the first path containing sources... What is the rationale behind adding the compiler path to the search path for units and sources? Ludo _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal