Mail Archives: djgpp-workers/1999/04/16/03:28:39
On 15 Apr 99, at 15:14, DJ Delorie wrote:
>
> In the future, all GNU packages built for DJGPP should be configured
> with --prefix=/djgpp
>
I'm afraid somebody may want to place DJGPP in diferent place.
Maybe we should introduce one more similar "special"directory like /dev
for that. For example provide translation of /usr/local/foo to $DJDIR/foo
or something like. That would allow us to avoid current nightmare with
putting environmnet variable in prefix. Perhaps it could also by a separate
library outside libc.a that provide this functionality (or some source module
linked with corrseponding package.
For egcs-1.1.X I found some workaround for related problems. For current
development snapshots this no more works so well. So having possibility
of such translation would help in porting GNU packages. However there
may be also problems as somebody may try to use this special directory name
for something else.
Maybe --prefix=/:DJDIR would be usable for that purpose as '/:foo' is invalid file
name for DOS and also for Win9X. So we'll not have problems if somebody will
want to use directory with such name.
So /:DJDIR/lib/gcc-lib/djgpp/egcs-291.66/cpp.exe would be translated
to $DJDIR/lib/gcc-lib/djgpp/egcs-291.66/cpp.exe. The problem is that we should
provide this functionality for many libc.a functions not only open (findfirst,
opendir,stat, etc...). Perhaps getting full file name (_truename()) should
resolve this hack.
Similary also or something like could be used.
I understand that this ideas may look weird but having to put $DJDIR in
prefix also seems like nightmare.
Andris
- Raw text -